add components_to_skip setting
This commit is contained in:
parent
094d9c6497
commit
e7c57dcabc
2 changed files with 6 additions and 2 deletions
|
@ -168,9 +168,11 @@ def server_port(server_and_port):
|
||||||
def server_list(servers):
|
def server_list(servers):
|
||||||
return [server_port(server) for server in servers]
|
return [server_port(server) for server in servers]
|
||||||
|
|
||||||
|
|
||||||
def server_list_reverse(servers):
|
def server_list_reverse(servers):
|
||||||
return ["%s:%s" % (server, port) for server, port in servers]
|
return ["%s:%s" % (server, port) for server, port in servers]
|
||||||
|
|
||||||
|
|
||||||
class Env(envparse.Env):
|
class Env(envparse.Env):
|
||||||
"""An Env parser that automatically namespaces the variables with LBRY"""
|
"""An Env parser that automatically namespaces the variables with LBRY"""
|
||||||
|
|
||||||
|
@ -299,7 +301,8 @@ ADJUSTABLE_SETTINGS = {
|
||||||
'blockchain_name': (str, 'lbrycrd_main'),
|
'blockchain_name': (str, 'lbrycrd_main'),
|
||||||
'lbryum_servers': (list, [('lbryumx1.lbry.io', 50001), ('lbryumx2.lbry.io',
|
'lbryum_servers': (list, [('lbryumx1.lbry.io', 50001), ('lbryumx2.lbry.io',
|
||||||
50001)], server_list, server_list_reverse),
|
50001)], server_list, server_list_reverse),
|
||||||
's3_headers_depth': (int, 96 * 10) # download headers from s3 when the local height is more than 10 chunks behind
|
's3_headers_depth': (int, 96 * 10), # download headers from s3 when the local height is more than 10 chunks behind
|
||||||
|
'components_to_skip': (list, ['reflector']) # components which will be skipped during start-up of daemon
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,8 @@ class DiskBlobManager(object):
|
||||||
self.blob_hashes_to_delete = {} # {blob_hash: being_deleted (True/False)}
|
self.blob_hashes_to_delete = {} # {blob_hash: being_deleted (True/False)}
|
||||||
|
|
||||||
self.check_should_announce_lc = None
|
self.check_should_announce_lc = None
|
||||||
if conf.settings['run_reflector_server']: # TODO: move this looping call to SQLiteStorage
|
# TODO: move this looping call to SQLiteStorage
|
||||||
|
if 'reflector' not in conf.settings['components_to_skip']:
|
||||||
self.check_should_announce_lc = task.LoopingCall(self.storage.verify_will_announce_all_head_and_sd_blobs)
|
self.check_should_announce_lc = task.LoopingCall(self.storage.verify_will_announce_all_head_and_sd_blobs)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
|
|
Loading…
Add table
Reference in a new issue