mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-17 23:36:33 +00:00
[marketplace] bring forward changes from 4f205f56b96f4c16edb944c78ff6f22046c14816
This commit is contained in:
parent
39fc92ed43
commit
9c50682bac
@ -83,10 +83,10 @@ proc handleRequest(sales: Sales,
|
||||
let agent = newSalesAgent(
|
||||
sales,
|
||||
requestId,
|
||||
slotIndex,
|
||||
# TODO: change availability to be non-optional? It doesn't make sense to move
|
||||
# forward with the sales process at this point if there is no availability
|
||||
some availability,
|
||||
some slotIndex,
|
||||
none StorageRequest
|
||||
)
|
||||
|
||||
@ -115,10 +115,10 @@ proc load*(sales: Sales) {.async.} =
|
||||
let agent = newSalesAgent(
|
||||
sales,
|
||||
request.id,
|
||||
slotIndex,
|
||||
# TODO: change availability to be non-optional? It doesn't make sense to move
|
||||
# forward with the sales process at this point if there is no availability
|
||||
availability,
|
||||
some slotIndex,
|
||||
some request)
|
||||
|
||||
await agent.start(request.ask.slots)
|
||||
|
@ -72,8 +72,8 @@ suite "Sales state machine":
|
||||
|
||||
proc newSalesAgent(slotIdx: UInt256 = 0.u256): SalesAgent =
|
||||
let agent = sales.newSalesAgent(request.id,
|
||||
slotIdx,
|
||||
some availability,
|
||||
some slotIdx,
|
||||
some request)
|
||||
return agent
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user