Sockets returns a copy of the sockets map associated with the SubChannel.
()
| 49 | |
| 50 | // Sockets returns a copy of the sockets map associated with the SubChannel. |
| 51 | func (sc *SubChannel) Sockets() map[int64]string { |
| 52 | db.mu.RLock() |
| 53 | defer db.mu.RUnlock() |
| 54 | return copyMap(sc.sockets) |
| 55 | } |
| 56 | |
| 57 | // Trace returns a copy of the ChannelTrace associated with the SubChannel. |
| 58 | func (sc *SubChannel) Trace() *ChannelTrace { |