mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
parent
30a9c3db1e
commit
8f77933f4f
1 changed files with 2 additions and 0 deletions
|
@ -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)[..])
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue