MCPcopy
hub / github.com/davyxu/cellnet / Remove

Method Remove

peer/sesmgr.go:51–56  ·  view source on GitHub ↗
(ses cellnet.Session)

Source from the content-addressed store, hash-verified

49}
50
51func (self *CoreSessionManager) Remove(ses cellnet.Session) {
52
53 self.sesById.Delete(ses.ID())
54
55 atomic.AddInt64(&self.count, -1)
56}
57
58// 获得一个连接
59func (self *CoreSessionManager) GetSession(id int64) cellnet.Session {

Callers

nothing calls this directly

Calls 1

IDMethod · 0.65

Tested by

no test coverage detected