justheuristic 3 năm trước cách đây
mục cha
commit
e44117640a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      hivemind/p2p/p2p_daemon.py

+ 1 - 1
hivemind/p2p/p2p_daemon.py

@@ -301,7 +301,7 @@ class P2P:
             offset = 0
             while offset < len(data):
                 chunk = await P2P.receive_raw_data(reader)
-                buf[offset : offset + len(chunk)] = chunk
+                data[offset : offset + len(chunk)] = chunk
                 offset += len(chunk)
             protobuf.ParseFromString(data)
             return protobuf, None