mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-03-23 04:33:07 +00:00
Because availability filtering on push was removed, when availability is added and past storage request events are queried, those requests need to be filtered by availability before being added to the queue.
20 lines
444 B
Nim
20 lines
444 B
Nim
import pkg/chronicles
|
|
import pkg/chronos
|
|
import ../statemachine
|
|
import ../salesagent
|
|
import ./errorhandling
|
|
|
|
logScope:
|
|
topics = "marketplace sales ignored"
|
|
|
|
type
|
|
SaleIgnored* = ref object of ErrorHandlingState
|
|
|
|
method `$`*(state: SaleIgnored): string = "SaleIgnored"
|
|
|
|
method run*(state: SaleIgnored, machine: Machine): Future[?State] {.async.} =
|
|
let agent = SalesAgent(machine)
|
|
|
|
if onCleanUp =? agent.onCleanUp:
|
|
await onCleanUp()
|