Anton Kaliaev
7af4b5086a
Remove RepeatTimer and refactor Switch#Broadcast (#3429)
* p2p: refactor Switch#Broadcast func - call wg.Add only once - do not call peers.List twice! * bad for perfomance * peers list can change in between calls! Refs #3306 * p2p: use time.Ticker instead of RepeatTimer no need in RepeatTimer since we don't Reset them Refs #3306 * libs/common: remove RepeatTimer (also TimerMaker and Ticker interface) "ancient code that’s caused no end of trouble" Ethan I believe there's much simplier way to write a ticker than can be reset https://medium.com/@arpith/resetting-a-ticker-in-go-63858a2c17ec |
6 years ago | |
---|---|---|
.. | ||
testdata | p2p: Add test vectors for deriving secrets (#2120) | 6 years ago |
conn_go110.go | p2p: tmconn->conn and types->p2p | 7 years ago |
conn_notgo110.go | p2p: tmconn->conn and types->p2p | 7 years ago |
connection.go | Remove RepeatTimer and refactor Switch#Broadcast (#3429) | 6 years ago |
connection_test.go | make ineffassign linter pass (#3386) | 6 years ago |
secret_connection.go | p2p: fix comment in secret connection (#3348) | 6 years ago |
secret_connection_test.go | secret connection check all zeroes (#3347) | 6 years ago |
wire.go | alias amino imports (#3219) | 6 years ago |