Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions dash-spv/src/client/queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ impl<W: WalletInterface, N: NetworkManager, S: StorageManager> DashSpvClient<W,
self.network.lock().await.peer_count()
}

/// Get the number of connected peers (async version).
pub async fn get_peer_count(&self) -> usize {
self.network.lock().await.peer_count()
}

/// Disconnect a specific peer.
pub async fn disconnect_peer(&self, addr: &std::net::SocketAddr, reason: &str) -> Result<()> {
// Cast network manager to PeerNetworkManager to access disconnect_peer
Expand Down
Loading