check error
This commit is contained in:
parent
d8dfefc0ed
commit
23e9f80935
|
@ -314,8 +314,10 @@ func (c *Client) StreamingPublic(ctx context.Context) (chan Event, error) {
|
||||||
switch name {
|
switch name {
|
||||||
case "update":
|
case "update":
|
||||||
var status Status
|
var status Status
|
||||||
json.Unmarshal([]byte(token[1]), &status)
|
err = json.Unmarshal([]byte(token[1]), &status)
|
||||||
|
if err == nil {
|
||||||
q <- &UpdateEvent{&status}
|
q <- &UpdateEvent{&status}
|
||||||
|
}
|
||||||
case "notification":
|
case "notification":
|
||||||
case "delete":
|
case "delete":
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user