From acbbd8b9a6c7740f81227731134078a427ccf413 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 5 Dec 2024 00:13:08 +0000 Subject: [PATCH] update docs on release to ockam ref ockam_v0.144.0 --- reference/libraries/rust/nodes.md | 2 +- reference/libraries/rust/routing.md | 2 +- reference/protocols/nodes.md | 2 +- reference/protocols/routing.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/libraries/rust/nodes.md b/reference/libraries/rust/nodes.md index c4e7fb0e..dc0384f1 100644 --- a/reference/libraries/rust/nodes.md +++ b/reference/libraries/rust/nodes.md @@ -116,7 +116,7 @@ impl Worker for Echoer { println!("Address: {}, Received: {:?}", ctx.address(), msg); // Echo the message body back on its return_route. - ctx.send(msg.return_route(), msg.into_body()?).await + ctx.send(msg.return_route().clone(), msg.into_body()?).await } } diff --git a/reference/libraries/rust/routing.md b/reference/libraries/rust/routing.md index 14d3d3af..d566f9b6 100644 --- a/reference/libraries/rust/routing.md +++ b/reference/libraries/rust/routing.md @@ -384,7 +384,7 @@ impl Worker for Relay { local_message = local_message.pop_front_onward_route()?; local_message = local_message.prepend_front_onward_route(&self.route); // Prepend predefined route to the onward_route - let prev_hop = local_message.return_route_ref().next()?.clone(); + let prev_hop = local_message.return_route().next()?.clone(); if let Some(info) = ctx .flow_controls() diff --git a/reference/protocols/nodes.md b/reference/protocols/nodes.md index 95ff518f..b64731c5 100644 --- a/reference/protocols/nodes.md +++ b/reference/protocols/nodes.md @@ -83,7 +83,7 @@ impl Worker for Echoer { println!("Address: {}, Received: {:?}", ctx.address(), msg); // Echo the message body back on its return_route. - ctx.send(msg.return_route(), msg.into_body()?).await + ctx.send(msg.return_route().clone(), msg.into_body()?).await } } diff --git a/reference/protocols/routing.md b/reference/protocols/routing.md index a1383c67..7260fb0e 100644 --- a/reference/protocols/routing.md +++ b/reference/protocols/routing.md @@ -355,7 +355,7 @@ impl Worker for Relay { local_message = local_message.pop_front_onward_route()?; local_message = local_message.prepend_front_onward_route(&self.route); // Prepend predefined route to the onward_route - let prev_hop = local_message.return_route_ref().next()?.clone(); + let prev_hop = local_message.return_route().next()?.clone(); if let Some(info) = ctx .flow_controls()