diff --git a/container/shim/src/fetchers/lassie.js b/container/shim/src/fetchers/lassie.js index a46b5669..92aac5a4 100644 --- a/container/shim/src/fetchers/lassie.js +++ b/container/shim/src/fetchers/lassie.js @@ -69,10 +69,17 @@ export async function respondFromLassie(req, res, { cidObj, format }) { newKey = "depthType"; newVal = "shallow"; } + if (key === "depth" && val === "all") { + newKey = "depthType"; + newVal = "full"; + } lassieUrl.searchParams.set(newKey, toUtf8(newVal)); } lassieUrl.searchParams.set("format", "car"); - + // if no depth type set, default to shallow + if (!lassieUrl.searchParams.get("depthType")) { + lassieUrl.searchParams.set("depthType", "shallow"); + } const controller = new AbortController(); const timeoutId = setTimeout(() => controller.abort(), LASSIE_TIMEOUT); diff --git a/container/start.sh b/container/start.sh index 292804b8..73d9c3e9 100755 --- a/container/start.sh +++ b/container/start.sh @@ -55,7 +55,7 @@ export LASSIE_PORT=7766 export LASSIE_ORIGIN=http://127.0.0.1:$LASSIE_PORT export LASSIE_EVENT_RECORDER_INSTANCE_ID="$(cat /usr/src/app/shared/nodeId.txt)" export LASSIE_TEMP_DIRECTORY=/usr/src/app/shared/lassie -export LASSIE_MAX_BLOCKS_PER_REQUEST=10000 +export LASSIE_MAX_BLOCKS_PER_REQUEST=10 export LASSIE_LIBP2P_CONNECTIONS_LOWWATER=2000 export LASSIE_LIBP2P_CONNECTIONS_HIGHWATER=3000 export LASSIE_CONCURRENT_SP_RETRIEVALS=1