Moved onlinePeers to KV to further reduce coupling
This commit is contained in:
parent
0e4e7bb050
commit
6a6718c9fd
15 changed files with 56 additions and 25 deletions
|
@ -40,7 +40,7 @@ def accept_upload(request):
|
|||
try:
|
||||
b_hash = blockimporter.import_block_from_data(data)
|
||||
if b_hash:
|
||||
if g.too_many.get_by_string("OnionrCommunicatorDaemon").onlinePeers:
|
||||
if g.too_many.get_by_string("DeadSimpleKV").get('onlinePeers'):
|
||||
spawn(
|
||||
localcommand.local_command,
|
||||
f'/daemon-event/upload_event',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue