mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-07 13:55:17 +00:00
fixes from Bucky's review 2
This commit is contained in:
@@ -311,13 +311,13 @@ func (w *WSEvents) eventListener() {
|
||||
continue
|
||||
}
|
||||
result := new(ctypes.ResultEvent)
|
||||
err = json.Unmarshal(*resp.Result, result)
|
||||
err := json.Unmarshal(*resp.Result, result)
|
||||
if err != nil {
|
||||
// ignore silently (eg. subscribe, unsubscribe and maybe other events)
|
||||
// TODO: ?
|
||||
continue
|
||||
}
|
||||
if ch := getSubscription(result.Query); ch != nil {
|
||||
if ch := w.getSubscription(result.Query); ch != nil {
|
||||
ch <- result.Data
|
||||
}
|
||||
case <-w.quit:
|
||||
|
||||
Reference in New Issue
Block a user