This commit is contained in:
Simon B 2017-12-12 20:12:07 +01:00 committed by Ignotus Peverell
parent 30a9c3db1e
commit 8f77933f4f

View file

@ -109,6 +109,8 @@ impl PeerStore {
self.db.exists(&peer_key(peer_addr)[..]) self.db.exists(&peer_key(peer_addr)[..])
} }
/// TODO - allow below added to avoid github issue reports
#[allow(dead_code)]
pub fn delete_peer(&self, peer_addr: SocketAddr) -> Result<(), Error> { pub fn delete_peer(&self, peer_addr: SocketAddr) -> Result<(), Error> {
self.db.delete(&peer_key(peer_addr)[..]) self.db.delete(&peer_key(peer_addr)[..])
} }