From 327d494e3c374a3a0bdfa2d58b0e54fbf090a81c Mon Sep 17 00:00:00 2001 From: Davide Casale Date: Tue, 12 Dec 2023 05:13:23 +0100 Subject: [PATCH 1/2] Fix RuntimeError in method BfxWebSocketBucket::resubscribe. --- bfxapi/websocket/_client/bfx_websocket_bucket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bfxapi/websocket/_client/bfx_websocket_bucket.py b/bfxapi/websocket/_client/bfx_websocket_bucket.py index 8d83385..e30ec18 100644 --- a/bfxapi/websocket/_client/bfx_websocket_bucket.py +++ b/bfxapi/websocket/_client/bfx_websocket_bucket.py @@ -130,7 +130,7 @@ async def unsubscribe(self, sub_id: str) -> None: @Connection._require_websocket_connection async def resubscribe(self, sub_id: str) -> None: - for subscription in self.__subscriptions.values(): + for subscription in list(self.__subscriptions.values()): if subscription["sub_id"] == sub_id: await self.unsubscribe(sub_id) From 7f3db907b550b4446c9a125f60887953bef5f1a4 Mon Sep 17 00:00:00 2001 From: Davide Casale Date: Tue, 12 Dec 2023 05:13:50 +0100 Subject: [PATCH 2/2] Bump __version__ in file bfxapi/_version.py to v3.0.0b4. --- bfxapi/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bfxapi/_version.py b/bfxapi/_version.py index 6ab976e..e5b84fb 100644 --- a/bfxapi/_version.py +++ b/bfxapi/_version.py @@ -1 +1 @@ -__version__ = "3.0.0b3" +__version__ = "3.0.0b4"