GetAll returns all configured peers.
()
| 128 | |
| 129 | // GetAll returns all configured peers. |
| 130 | func (ps *PeerStore) GetAll() []*PeerInfo { |
| 131 | ps.mu.RLock() |
| 132 | defer ps.mu.RUnlock() |
| 133 | |
| 134 | result := make([]*PeerInfo, 0, len(ps.peers)) |
| 135 | for _, peer := range ps.peers { |
| 136 | result = append(result, clonePeerInfo(peer)) |
| 137 | } |
| 138 | return result |
| 139 | } |
| 140 | |
| 141 | // GetEmailMap returns a completely decoupled, point-in-time map of publicKey -> email. |
| 142 | // Replaces the over-engineered emailByKeySnapshotCache. |
no test coverage detected