mirror of
https://github.com/markqvist/LXMF.git
synced 2025-02-24 00:49:47 -05:00
Enqueue and batch process distribution queue mappings
This commit is contained in:
parent
1430b1ce90
commit
c2a08ef355
@ -656,6 +656,7 @@ class LXMRouter:
|
|||||||
time.sleep(LXMRouter.PROCESSING_INTERVAL)
|
time.sleep(LXMRouter.PROCESSING_INTERVAL)
|
||||||
|
|
||||||
def flush_queues(self):
|
def flush_queues(self):
|
||||||
|
if len(self.peers) > 0:
|
||||||
self.flush_peer_distribution_queue()
|
self.flush_peer_distribution_queue()
|
||||||
RNS.log("Calculating peer distribution queue mappings...", RNS.LOG_DEBUG); st = time.time()
|
RNS.log("Calculating peer distribution queue mappings...", RNS.LOG_DEBUG); st = time.time()
|
||||||
for peer_id in self.peers.copy():
|
for peer_id in self.peers.copy():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user