Skip to content

Commit fb92c05

Browse files
Fix option to pass the name of the proxy/channel
1 parent d892f82 commit fb92c05

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

DATA/common/setenv_calib.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,10 @@ get_proxy_connection()
119119
# setting the type of connection
120120
if [[ $2 == "input" ]]; then
121121
local CONNECTION="method=bind,type=pull"
122+
local NAMECONNECTION="--proxy-name"
122123
elif [[ $2 == "output" ]]; then
123124
local CONNECTION="method=connect,type=push"
125+
local NAMECONNECTION="--proxy-channel-name"
124126
else
125127
echo "parameter 2 should be either 'input' or 'output'"
126128
exit 2
@@ -131,7 +133,7 @@ get_proxy_connection()
131133
else
132134
CONNECTION+=",transport=zeromq"
133135
fi
134-
local PROXY_CONN="--proxy-channel-name aggregator-proxy-$1 --channel-config \"name=aggregator-proxy-$1,$CONNECTION,rateLogging=1\""
136+
local PROXY_CONN="$NAMECONNECTION aggregator-proxy-$1 --channel-config \"name=aggregator-proxy-$1,$CONNECTION,rateLogging=1\""
135137

136138
echo PROXY_CONN = $PROXY_CONN 1>&2
137139
echo $PROXY_CONN

0 commit comments

Comments
 (0)