Moved dbTimestamps and newPeers to KV for more decoupling
This commit is contained in:
parent
e00d41f8a9
commit
97a5f50271
7 changed files with 23 additions and 16 deletions
|
@ -50,7 +50,7 @@ def handle_announce(request):
|
|||
if stringvalidators.validate_transport(newNode) and \
|
||||
newNode not in announce_queue_list:
|
||||
g.shared_state.get(
|
||||
OnionrCommunicatorDaemon).newPeers.append(newNode)
|
||||
deadsimplekv.DeadSimpleKV).get('newPeers').append(newNode)
|
||||
announce_queue.put('new_peers',
|
||||
announce_queue_list.append(newNode))
|
||||
announce_queue.flush()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue