Skip to content

Commit a3e4fd4

Browse files
committed
PROTON-1442: [C++] Fix example transaction sender option parsing
1 parent ca98b8e commit a3e4fd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/examples/tx_send.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ class tx_send : public proton::messaging_handler {
137137
};
138138

139139
int main(int argc, char **argv) {
140-
std::string conn_url = argc > 1 ? argv[1] : "//127.0.0.1:5672";
141-
std::string addr = argc > 2 ? argv[2] : "examples";
140+
std::string conn_url = "//127.0.0.1:5672";
141+
std::string addr = "examples";
142142
int message_count = 6;
143143
int batch_size = 3;
144144
example::options opts(argc, argv);

0 commit comments

Comments
 (0)