Skip to content

Commit

Permalink
fix(rust): echo service initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianbenavides committed Feb 10, 2025
1 parent bd11b4b commit a5c7586
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ EOF
--variable SERVICE_PORT="$PYTHON_SERVER_PORT" &
sleep 10
run_success "$OCKAM" message send hello --timeout 2 --to "/node/n1/secure/api/service/echo"
run_success "$OCKAM" message send hello --timeout 5 --to "/project/default/service/forward_to_$RELAY_NAME/secure/api/service/echo"
run_success curl -sfI --retry-all-errors --retry-delay 5 --retry 10 -m 5 "127.0.0.1:$CLIENT_PORT"
}

Expand All @@ -85,6 +86,7 @@ EOF

# node created with expected name
run_success "$OCKAM" message send --timeout 5 hello --to "/node/n1/secure/api/service/echo"
run_success "$OCKAM" message send --timeout 5 hello --to "/project/default/service/forward_to_$RELAY_NAME/secure/api/service/echo"
# tcp-listener-address set to expected port
run_success "$OCKAM" message send --timeout 5 hello --to "/dnsaddr/127.0.0.1/tcp/$NODE_PORT/secure/api/service/echo"
# portal is working: inlet -> relay -> outlet -> python server
Expand Down Expand Up @@ -121,6 +123,7 @@ EOF

# node created with expected name
run_success "$OCKAM" message send --timeout 5 hello --to "/node/n1/secure/api/service/echo"
run_success "$OCKAM" message send --timeout 5 hello --to "/project/default/service/forward_to_$RELAY_NAME/secure/api/service/echo"
# tcp-listener-address set to expected port
run_success "$OCKAM" message send --timeout 5 hello --to "/dnsaddr/127.0.0.1/tcp/$NODE_PORT/secure/api/service/echo"
# portal is working: inlet -> relay -> outlet -> python server
Expand Down
2 changes: 1 addition & 1 deletion implementations/rust/ockam/ockam_node/src/router/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl InternalMap {
})?
.clone();

debug!(%address, %primary_address, "Stopping address");
debug!(%address, %primary_address, "stopping address");

self.flow_controls.cleanup_address(&primary_address);

Expand Down

0 comments on commit a5c7586

Please sign in to comment.