5014e4e3b0
Multiple concurrent topic pool stops could result in the close of the closed quit channel. Fixed by using atomic compare and swap and closing only if swap happened. Added events feed to peer pool for tests purpose. Otherwise it is impossible to run simulation with -race flag enabled. In the essence it happens because we are managing global object , which is server.Discv5, but unfortunately there is no way around it. |
||
---|---|---|
.. | ||
cache.go | ||
cache_test.go | ||
discv5.go | ||
peerpool.go | ||
peerpool_test.go | ||
topic_register.go | ||
topicpool.go | ||
topicpool_test.go |