mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-25 23:42:23 +00:00
rpcsrv: drop ws from subscriber
Subscribers can be local as well and no one uses this field anyway.
This commit is contained in:
parent
6f7fed344b
commit
bd4a9f3f22
2 changed files with 1 additions and 2 deletions
|
@ -470,7 +470,7 @@ func (s *Server) handleHTTPRequest(w http.ResponseWriter, httpRequest *http.Requ
|
|||
}
|
||||
resChan := make(chan abstractResult) // response.abstract or response.abstractBatch
|
||||
subChan := make(chan intEvent, notificationBufSize)
|
||||
subscr := &subscriber{writer: subChan, ws: ws}
|
||||
subscr := &subscriber{writer: subChan}
|
||||
s.subsLock.Lock()
|
||||
s.subscribers[subscr] = true
|
||||
s.subsLock.Unlock()
|
||||
|
|
|
@ -17,7 +17,6 @@ type (
|
|||
// subscriber is an event subscriber.
|
||||
subscriber struct {
|
||||
writer chan<- intEvent
|
||||
ws *websocket.Conn
|
||||
overflown atomic.Bool
|
||||
// These work like slots as there is not a lot of them (it's
|
||||
// cheaper doing it this way rather than creating a map),
|
||||
|
|
Loading…
Reference in a new issue