We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43d4c5b commit 809b2adCopy full SHA for 809b2ad
1 file changed
crawler/src/connection.rs
@@ -3,6 +3,10 @@
3
//! This module provides the [`PeerConnection`] trait that abstracts bitcoin peer
4
//! connections, enabling dependency injection for testing without modifying
5
//! the core crawler logic.
6
+//!
7
+//! It would be nice if super clean async/await syntax could be used, but the
8
+//! implementations must be `Send` due to how things are spawned in the CrawlerSession.
9
+//! So RPITIT syntax is used instead.
10
11
use bitcoin::p2p::message::NetworkMessage;
12
use bitcoin_peers_connection::{Connection, ConnectionConfiguration, ConnectionError, Peer};
0 commit comments