(conn *Conn)
| 90 | } |
| 91 | |
| 92 | func (b *TelemetryStore) pingPeer(conn *Conn) { |
| 93 | b.mu.Lock() |
| 94 | defer b.mu.Unlock() |
| 95 | |
| 96 | if b.connectedIP == nil { |
| 97 | return |
| 98 | } |
| 99 | ip := *b.connectedIP |
| 100 | go func() { |
| 101 | _, _, _, _ = conn.Ping(conn.watchCtx, ip) |
| 102 | }() |
| 103 | } |
| 104 | |
| 105 | func (b *TelemetryStore) changedConntype(addr string) bool { |
| 106 | b.mu.Lock() |
no test coverage detected