forked from LBRYCommunity/lbry-sdk
Env->ServerEnv from scribe changes
This commit is contained in:
parent
7a8d5da0e8
commit
0ea8ba72dd
1 changed files with 3 additions and 2 deletions
|
@ -17,8 +17,9 @@ from typing import Type, Optional
|
||||||
import urllib.request
|
import urllib.request
|
||||||
from uuid import uuid4
|
from uuid import uuid4
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from scribe.env import Env
|
from scribe.hub.env import ServerEnv
|
||||||
from scribe.hub.service import HubServerService
|
from scribe.hub.service import HubServerService
|
||||||
from scribe.elasticsearch.service import ElasticSyncService
|
from scribe.elasticsearch.service import ElasticSyncService
|
||||||
from scribe.blockchain.service import BlockchainProcessorService
|
from scribe.blockchain.service import BlockchainProcessorService
|
||||||
|
@ -260,7 +261,7 @@ class SPVNode:
|
||||||
}
|
}
|
||||||
if extraconf:
|
if extraconf:
|
||||||
conf.update(extraconf)
|
conf.update(extraconf)
|
||||||
env = Env(**conf)
|
env = ServerEnv(**conf)
|
||||||
self.writer = BlockchainProcessorService(env)
|
self.writer = BlockchainProcessorService(env)
|
||||||
self.server = HubServerService(env)
|
self.server = HubServerService(env)
|
||||||
self.es_writer = ElasticSyncService(env)
|
self.es_writer = ElasticSyncService(env)
|
||||||
|
|
Loading…
Reference in a new issue