mirror of
https://github.com/status-im/nim-dagger.git
synced 2025-02-16 16:46:28 +00:00
fix(api): correctly using tolerance for storage request (#359)
This commit is contained in:
parent
c3095f78a2
commit
6cbf3ab044
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user