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
2019-03-19 20:10:54 -04:00
..
2018-07-01 22:36:03 -04:00
2018-07-02 12:06:43 -04:00
2019-02-11 16:31:34 +04:00
2018-07-01 22:36:03 -04:00
2018-07-01 22:36:03 -04:00
2018-08-14 18:59:04 +04:00
2018-08-14 18:59:04 +04:00
2019-02-06 15:24:54 +04:00
2018-07-01 22:36:03 -04:00
2018-07-01 22:36:03 -04:00
2018-07-01 22:36:03 -04:00
2018-07-01 22:36:03 -04:00
2018-09-20 11:12:42 +02:00
2018-07-01 22:36:03 -04:00
2018-07-01 22:36:03 -04:00
2018-07-01 22:36:03 -04:00
2018-08-27 10:43:15 +04:00
2018-07-01 22:36:03 -04:00
2019-02-06 10:14:03 -05:00
2018-07-01 22:36:03 -04:00
2018-07-01 22:36:03 -04:00
2018-07-01 22:36:03 -04:00