Skip to content

Commit 9496b43

Browse files
Add TODOs for identify
1 parent 48a8e9d commit 9496b43

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

protocols/identify/src/handler.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,12 @@ impl ConnectionHandler for Handler {
345345
self.on_dial_upgrade_error(dial_upgrade_error)
346346
}
347347
ConnectionEvent::AddressChange(_)
348-
| ConnectionEvent::ListenUpgradeError(_)
349-
| ConnectionEvent::ProtocolsChange(_) => {}
348+
| ConnectionEvent::ListenUpgradeError(_) => {}
349+
ConnectionEvent::ProtocolsChange(_) => {
350+
// TODO:
351+
// 1. push protocol changes
352+
// 2. store protocols locally and use it to answer next identify request
353+
}
350354
}
351355
}
352356
}

0 commit comments

Comments
 (0)