From 2eaf31ec7bff7cc6e894d924f02d7dfbb848542f Mon Sep 17 00:00:00 2001 From: sosoeeee <809953371@qq.com> Date: Tue, 2 Jul 2024 22:31:04 +0800 Subject: [PATCH] increase buffer size of bond_status callback in bondpy --- bondpy/bondpy/bondpy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bondpy/bondpy/bondpy.py b/bondpy/bondpy/bondpy.py index 95a68ac..e7e53cd 100644 --- a/bondpy/bondpy/bondpy.py +++ b/bondpy/bondpy/bondpy.py @@ -170,7 +170,7 @@ def set_heartbeat_period(self, per): def start(self): with self.lock: self.connect_timer.reset() - self.sub = self.node.create_subscription(Status, self.topic, self._on_bond_status, 1) + self.sub = self.node.create_subscription(Status, self.topic, self._on_bond_status, 100) self.thread = threading.Thread(target=self._publishing_thread) self.thread.daemon = True