[marketplace] bring forward changes from 4f205f56b96f4c16edb944c78ff6f22046c14816

This commit is contained in:
Eric Mastro 2023-02-08 15:40:27 +11:00
parent 39fc92ed43
commit 9c50682bac
No known key found for this signature in database
GPG Key ID: 141E3048D95A4E63
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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