c.mu must be held by the caller.
(id int64)
| 147 | |
| 148 | // c.mu must be held by the caller. |
| 149 | func (c *channelMap) findEntry(id int64) entry { |
| 150 | if v, ok := c.channels[id]; ok { |
| 151 | return v |
| 152 | } |
| 153 | if v, ok := c.subChannels[id]; ok { |
| 154 | return v |
| 155 | } |
| 156 | if v, ok := c.servers[id]; ok { |
| 157 | return v |
| 158 | } |
| 159 | if v, ok := c.sockets[id]; ok { |
| 160 | return v |
| 161 | } |
| 162 | return &dummyEntry{idNotFound: id} |
| 163 | } |
| 164 | |
| 165 | // c.mu must be held by the caller |
| 166 | // |
no outgoing calls
no test coverage detected