Skip to content

Commit

Permalink
fix active subscription comparison (hyperliquid-dex#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinPHR authored May 13, 2024
1 parent 1e8a1d0 commit 2e68003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hyperliquid/websocket_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ def unsubscribe(self, subscription: Subscription, subscription_id: int) -> bool:
if len(new_active_subscriptions) == 0:
self.ws.send(json.dumps({"method": "unsubscribe", "subscription": subscription}))
self.active_subscriptions[identifier] = new_active_subscriptions
return len(active_subscriptions) != len(active_subscriptions)
return len(active_subscriptions) != len(new_active_subscriptions)

0 comments on commit 2e68003

Please sign in to comment.