From fe7cd37d019817577b9c5d6b31eb45657ad876f9 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Sat, 8 Oct 2022 15:26:21 +0900 Subject: [PATCH] utils/ipc-sshtunnel: Remove unused argument `endpoint' The local_to_remote() and local_to_remote() functions in ipc-sshtunnel take a parameter `endpoint', which is never used. This commit removes the unused parameter. --- utils/ipc-sshtunnel.sh | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/utils/ipc-sshtunnel.sh b/utils/ipc-sshtunnel.sh index 1b6294a..3fcbf60 100755 --- a/utils/ipc-sshtunnel.sh +++ b/utils/ipc-sshtunnel.sh @@ -44,10 +44,9 @@ _array_add() { local_to_remote() { local remote="$1" - local endpoint="$2" - local -n ref_topics="$3" - local -n ref_tap_hooks="$4" - local -n ref_inject_hooks="$5" + local -n ref_topics="$2" + local -n ref_tap_hooks="$3" + local -n ref_inject_hooks="$4" local topic local hook @@ -73,10 +72,9 @@ local_to_remote() { remote_to_local() { local remote="$1" - local endpoint="$2" - local -n ref_topics="$3" - local -n ref_tap_hooks="$4" - local -n ref_inject_hooks="$5" + local -n ref_topics="$2" + local -n ref_tap_hooks="$3" + local -n ref_inject_hooks="$4" local topic local hook @@ -116,7 +114,7 @@ spawn_tunnel() { local -i tunnel - if tunnel=$("$tunnel_func" "$remote" "$endpoint" "$ref_topics" "$ref_tap_hooks" "$ref_inject_hooks"); then + if tunnel=$("$tunnel_func" "$remote" "$ref_topics" "$ref_tap_hooks" "$ref_inject_hooks"); then while inst_running && process_is_running "$tunnel"; do sleep 5 done -- 2.47.3