update libp2p to 0.55 (#6889)

Updates libp2p to `0.55`.
Will address the deprecations in a subsequent PR
This commit is contained in:
João Oliveira
2025-01-31 12:21:06 +00:00
committed by GitHub
parent b6db213548
commit ddb845d503
9 changed files with 351 additions and 159 deletions

View File

@@ -37,7 +37,10 @@ impl<E: EthSpec> NetworkBehaviour for PeerManager<E> {
// no events from the dummy handler
}
fn poll(&mut self, cx: &mut Context<'_>) -> Poll<ToSwarm<Self::ToSwarm, void::Void>> {
fn poll(
&mut self,
cx: &mut Context<'_>,
) -> Poll<ToSwarm<Self::ToSwarm, std::convert::Infallible>> {
// perform the heartbeat when necessary
while self.heartbeat.poll_tick(cx).is_ready() {
self.heartbeat();