justheuristic 3 年之前
父節點
當前提交
e44117640a
共有 1 個文件被更改,包括 1 次插入1 次删除
  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