890559edfa
In this commit, we add a new abstraction to the package: the mailBox. The mailBox is a non-blocking, concurrent safe, in-order queue for delivering messages to a given channelLink instance. With this abstraction in place, we can now allow the switch to no longer launch a new goroutine for each forwarded HTLC, or instantiated user payment. |
||
---|---|---|
.. | ||
circuit.go | ||
failure.go | ||
interfaces.go | ||
iterator.go | ||
link_test.go | ||
link.go | ||
log.go | ||
mailbox_test.go | ||
mailbox.go | ||
mock.go | ||
packet.go | ||
queue_test.go | ||
queue.go | ||
switch_test.go | ||
switch.go | ||
test_utils.go |