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 | |
---|---|---|
.. | ||
addrbook.go | p2p: addrBook.Save() on DialPeersAsync | 7 years ago |
addrbook_test.go | p2p: tmconn->conn and types->p2p | 7 years ago |
file.go | config: fix addrbook path to go in config | 7 years ago |
known_address.go | config: fix addrbook path to go in config | 7 years ago |
params.go | p2p: use sub dirs | 7 years ago |
pex_reactor.go | p2p: tmconn->conn and types->p2p | 7 years ago |
pex_reactor_test.go | rewrite broadcastTxRoutine to use channels | 7 years ago |