Skip to content

Commit

Permalink
Added missing notificationMsg types to notificationHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
flammit committed Mar 5, 2014
1 parent b452acd commit 33af740
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rpcwebsocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,10 @@ out:
wsc := (*wsClient)(n)
blockNotifications[wsc.quit] = wsc

case *notificationUnregisterBlocks:
wsc := (*wsClient)(n)
delete(blockNotifications, wsc.quit)

case *notificationRegisterClient:
wsc := (*wsClient)(n)
clients[wsc.quit] = wsc
Expand Down Expand Up @@ -322,6 +326,14 @@ out:
case *notificationUnregisterAddr:
m.removeAddrRequest(watchedAddrs, n.wsc, n.addr)

case *notificationRegisterNewMempoolTxs:
wsc := (*wsClient)(n)
txNotifications[wsc.quit] = wsc

case *notificationUnregisterNewMempoolTxs:
wsc := (*wsClient)(n)
delete(txNotifications, wsc.quit)

default:
rpcsLog.Warn("Unhandled notification type")
}
Expand Down

0 comments on commit 33af740

Please sign in to comment.