Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
lesismal committed Mar 10, 2024
1 parent 0903249 commit 3ac5b78
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -743,20 +743,6 @@ func (c *Client) clearAsyncHandler() {
}
}

func (c *Client) addStream(id uint64, local bool, stream *Stream) {
c.mux.Lock()
if c.running {
var streamMap map[uint64]*Stream
if local {
streamMap = c.streamLocalMap
} else {
streamMap = c.streamRemoteMap
}
streamMap[id] = stream
}
c.mux.Unlock()
}

func (c *Client) deleteStream(id uint64, local bool) {
c.mux.Lock()
if c.running {
Expand Down

0 comments on commit 3ac5b78

Please sign in to comment.