These queues should be pruned of expired actions so they don't accumulate useless transactions.
Expiration cleanup should have the same period as buy / sell validity: 60s.
Goroutines seem like an obvious implementation since they will run concurrently. Might have to be careful with concurrent queue access.
These queues should be pruned of expired actions so they don't accumulate useless transactions.
Expiration cleanup should have the same period as buy / sell validity: 60s.
Goroutines seem like an obvious implementation since they will run concurrently. Might have to be careful with concurrent queue access.