fix(api): correctly using tolerance for storage request (#359)

This commit is contained in:
Adam Uhlíř 2023-03-13 13:23:50 +01:00 committed by GitHub
parent c3095f78a2
commit 6cbf3ab044
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ proc initRestApi*(node: CodexNodeRef, conf: CodexConf): RestRouter =
return RestApiResponse.error(Http400, error.msg) return RestApiResponse.error(Http400, error.msg)
let nodes = params.nodes |? 1 let nodes = params.nodes |? 1
let tolerance = params.nodes |? 0 let tolerance = params.tolerance |? 0
without purchaseId =? await node.requestStorage( without purchaseId =? await node.requestStorage(
cid, cid,