MCPcopy
hub / github.com/aceld/zinx / Remove

Method Remove

znet/connmanager.go:29–34  ·  view source on GitHub ↗
(conn ziface.IConnection)

Source from the content-addressed store, hash-verified

27}
28
29func (connMgr *ConnManager) Remove(conn ziface.IConnection) {
30
31 connMgr.connections.Remove(conn.GetConnIdStr()) // 删除连接信息
32
33 zlog.Ins().DebugF("connection Remove ConnID=%d successfully: conn num = %d", conn.GetConnID(), connMgr.Len())
34}
35
36func (connMgr *ConnManager) Get(connID uint64) (ziface.IConnection, error) {
37

Callers

nothing calls this directly

Calls 6

LenMethod · 0.95
InsFunction · 0.92
RemoveMethod · 0.65
GetConnIdStrMethod · 0.65
DebugFMethod · 0.65
GetConnIDMethod · 0.65

Tested by

no test coverage detected