From ac6eac4889dc089c37d70e8f253393759aeb6510 Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 10 Nov 2023 00:36:26 +0100 Subject: [PATCH] packages/reflex-cache: use better ipfs chunking --- packages/servers/reflex-cache/reflex_cache/ipfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/servers/reflex-cache/reflex_cache/ipfs.py b/packages/servers/reflex-cache/reflex_cache/ipfs.py index d7b855f..de71b1c 100644 --- a/packages/servers/reflex-cache/reflex_cache/ipfs.py +++ b/packages/servers/reflex-cache/reflex_cache/ipfs.py @@ -26,7 +26,7 @@ class IPFSController: upload = {"file": ("FILE", content, "application/octet-stream")} try: rIpfs = requests_unixsocket.post( - f"{self.__nodeAddr}/api/v0/add?pin=false&quieter=true", files=upload + f"{self.__nodeAddr}/api/v0/add?pin=false&quieter=true&chunker=buzhash&trickle=true", files=upload ) hash = rIpfs.json()["Hash"] print(f"Mapped: {nar} -> /ipfs/{hash}")