Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed May 27, 2024
1 parent 25e0c77 commit 8105b1d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion testground/benchmark/benchmark/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import json
import os
import queue

Expand Down
2 changes: 1 addition & 1 deletion testground/benchmark/benchmark/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def _subscribe(self, topic, callback):
"send one request, recv multiple responses"

def on_recv(msg):
callback(msg["subscribe"] if msg is not None else None)
callback(json.loads(msg["subscribe"]) if msg is not None else None)

id = self.next_id()
self._handlers[id] = on_recv
Expand Down

0 comments on commit 8105b1d

Please sign in to comment.