Skip to content
This repository was archived by the owner on Oct 23, 2022. It is now read-only.

Commit 0e45c71

Browse files
ljedrzkoivunej
andauthored
chore: expand a bitswap comment
Co-authored-by: Joonas Koivunen <joonas.koivunen@gmail.com>
1 parent c0524d5 commit 0e45c71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bitswap/src/behaviour.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ impl NetworkBehaviour for Bitswap {
237237
fn inject_event(&mut self, source: PeerId, _connection: ConnectionId, message: MessageWrapper) {
238238
let mut message = match message {
239239
// we just sent an outgoing bitswap message, nothing to do here
240+
// FIXME: we could commit any pending stats accounting for this peer now
241+
// that the message may have sent, if we'd do such accounting
240242
MessageWrapper::Tx => return,
241243
// we've received a bitswap message, process it
242244
MessageWrapper::Rx(msg) => msg,

0 commit comments

Comments
 (0)