MCPcopy
hub / github.com/tinode/chat / delSub

Method delSub

server/session.go:205–213  ·  view source on GitHub ↗
(topic string)

Source from the content-addressed store, hash-verified

203}
204
205func (s *Session) delSub(topic string) {
206 if s.multi != nil {
207 s.multi.delSub(topic)
208 return
209 }
210 s.subsLock.Lock()
211 delete(s.subs, topic)
212 s.subsLock.Unlock()
213}
214
215func (s *Session) countSub() int {
216 if s.multi != nil {

Callers 6

writeGrpcLoopMethod · 0.95
writeLoopMethod · 0.95
writeOnceMethod · 0.95
TestDispatchLeaveFunction · 0.80
handleLeaveRequestMethod · 0.80

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by 1

TestDispatchLeaveFunction · 0.64