(pk NoisePublicKey)
| 339 | } |
| 340 | |
| 341 | func (device *Device) LookupPeer(pk NoisePublicKey) *Peer { |
| 342 | device.peers.RLock() |
| 343 | defer device.peers.RUnlock() |
| 344 | |
| 345 | return device.peers.keyMap[pk] |
| 346 | } |
| 347 | |
| 348 | func (device *Device) RemovePeer(key NoisePublicKey) { |
| 349 | device.peers.Lock() |
no outgoing calls
no test coverage detected