Skip to content

Commit

Permalink
Schedule queue after publish
Browse files Browse the repository at this point in the history
  • Loading branch information
laffra committed Jan 24, 2024
1 parent cb17ba8 commit b21776d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ltk/pubsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def publish(self, sender, receiver, topic, data):
if show_publish:
_logger.info(f"[Pubsub] {json.dumps(['publish', sender, receiver, topic, str(data)[:32]])}")
self.process_queue()
schedule(self.process_queue, 100)

def subscribe(self, name, topic, handler):
self.subscribers.append([name, topic, handler])
Expand Down

0 comments on commit b21776d

Please sign in to comment.