Anton Kaliaev
11b68f1934
https://play.golang.org/p/gN21yO9IRs3 ``` func waitWithCancel(f func() *clist.CElement, ctx context.Context) *clist.CElement { el := make(chan *clist.CElement, 1) select { case el <- f(): ``` will just run f() blockingly, so this doesn't change much in terms of behavior. |
7 years ago | |
---|---|---|
.. | ||
mempool.go | rewrite broadcastTxRoutine to use channels | 7 years ago |
mempool_test.go | update for sdk2 libs. need to fix kv test | 7 years ago |
reactor.go | rewrite broadcastTxRoutine to use channels | 7 years ago |
reactor_test.go | fix memory leak in mempool reactor | 7 years ago |