Skip to content

Commit 809b2ad

Browse files
committed
fix: mention RPITIT in comment
1 parent 43d4c5b commit 809b2ad

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

crawler/src/connection.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
//! This module provides the [`PeerConnection`] trait that abstracts bitcoin peer
44
//! connections, enabling dependency injection for testing without modifying
55
//! 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.
610
711
use bitcoin::p2p::message::NetworkMessage;
812
use bitcoin_peers_connection::{Connection, ConnectionConfiguration, ConnectionError, Peer};

0 commit comments

Comments
 (0)