瀏覽代碼

smaller chunks yet

justheuristic 3 年之前
父節點
當前提交
9ea5e1430f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hivemind/p2p/p2p_daemon.py

+ 1 - 1
hivemind/p2p/p2p_daemon.py

@@ -278,7 +278,7 @@ class P2P:
 
     @staticmethod
     async def send_protobuf(protobuf: Union[TOutputProtobuf, RPCError],
-                            writer: asyncio.StreamWriter, *, chunk_size: int = 2 ** 16) -> None:
+                            writer: asyncio.StreamWriter, *, chunk_size: int = 2 ** 14) -> None:
         if isinstance(protobuf, RPCError):
             writer.write(P2P.ERROR_MARKER)
         else: