mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 14:00:31 +08:00
node: Turn remotes into an iterator
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
@@ -95,13 +95,13 @@ impl Peer {
|
||||
self.attempts = 0;
|
||||
}
|
||||
|
||||
pub fn received<S, T, G>(
|
||||
pub fn received<'r, S, T, G>(
|
||||
&mut self,
|
||||
envelope: Envelope,
|
||||
ctx: &mut Context<S, T, G>,
|
||||
) -> Result<Option<Message>, PeerError>
|
||||
where
|
||||
T: storage::ReadStorage + storage::WriteStorage,
|
||||
T: storage::WriteStorage<'r>,
|
||||
G: crypto::Signer,
|
||||
{
|
||||
if envelope.magic != ctx.config.network.magic() {
|
||||
|
||||
Reference in New Issue
Block a user