mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-22 16:03:29 +00:00
[WSClient] allow for multiple restarts
needed for https://github.com/tendermint/tools/pull/13/commits/3044f66ba90694927fb22ea5267de2a90bb3281b See https://github.com/tendermint/tools/issues/6
This commit is contained in:
@@ -53,6 +53,9 @@ func (wsc *WSClient) OnStart() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
wsc.ResultsCh = make(chan json.RawMessage, wsResultsChannelCapacity)
|
||||
wsc.ErrorsCh = make(chan error, wsErrorsChannelCapacity)
|
||||
go wsc.receiveEventsRoutine()
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user