Skip to content

Commit 62fb02c

Browse files
chiarazampollidavidrohr
authored andcommitted
Adding output proxy name - needed when >1 output proxiess are there
1 parent c62f9ab commit 62fb02c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

DATA/common/setenv_calib.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,12 @@ get_proxy_connection()
130130
# setting the type of connection
131131
if [[ $2 == "input" ]]; then
132132
local CONNECTION="method=bind,type=pull"
133-
local NAMECONNECTION="--proxy-name"
133+
local NAMEPROXY="--proxy-name aggregator-proxy-$1"
134+
local NAMEPROXYCHANNEL=
134135
elif [[ $2 == "output" ]]; then
135136
local CONNECTION="method=connect,type=push"
136-
local NAMECONNECTION="--proxy-channel-name"
137+
local NAMEPROXY="--proxy-name calib-output-proxy-$1"
138+
local NAMEPROXYCHANNEL="--proxy-channel-name aggregator-proxy-$1"
137139
else
138140
echo "parameter 2 should be either 'input' or 'output'"
139141
exit 2
@@ -144,7 +146,7 @@ get_proxy_connection()
144146
else
145147
CONNECTION+=",transport=zeromq"
146148
fi
147-
local PROXY_CONN="$NAMECONNECTION aggregator-proxy-$1 --channel-config \"name=aggregator-proxy-$1,$CONNECTION,rateLogging=1\""
149+
local PROXY_CONN="$NAMEPROXY $NAMEPROXYCHANNEL --channel-config \"name=aggregator-proxy-$1,$CONNECTION,rateLogging=1\""
148150

149151
echo PROXY_CONN = $PROXY_CONN 1>&2
150152
echo $PROXY_CONN

0 commit comments

Comments
 (0)