mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-22 17:31:34 +00:00
rewrite ws client to expose a callback instead of a channel
callback gives more power to the publisher. plus it is optional comparing to a channel, which will block the whole client if you won't read from it.
This commit is contained in:
committed by
Zach Ramsay
parent
ce36a0111a
commit
45ff7cdd0c
@ -186,8 +186,6 @@ func callWgDoneOnResult(t *testing.T, c *WSClient, wg *sync.WaitGroup) {
|
||||
if err != nil {
|
||||
t.Fatalf("unexpected error: %v", err)
|
||||
}
|
||||
case <-c.ReconnectCh:
|
||||
t.Log("Reconnected")
|
||||
case <-c.Quit:
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user