We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7a738b commit 9056147Copy full SHA for 9056147
1 file changed
rpc/src/main_rpc_client.cpp
@@ -91,13 +91,12 @@ int main(int argc, char* argv[]) {
91
UUri source = getRpcUUri(0);
92
UUri method = getRpcUUri(METHOD_RPC_RESOURCE_ID);
93
auto transport = std::make_shared<ZenohUTransport>(source, args.at(1));
94
- auto client = RpcClient(transport, std::move(method),
95
- uprotocol::v1::UPriority::UPRIORITY_CS4,
+ auto client = RpcClient(transport, uprotocol::v1::UPriority::UPRIORITY_CS4,
96
std::chrono::milliseconds(RPCCLIENT_TTL));
97
RpcClient::InvokeHandle handle;
98
99
while (!g_terminate) {
100
- handle = client.invokeMethod(OnReceive);
+ handle = client.invokeMethod(method, OnReceive);
101
sleep(1);
102
}
103
0 commit comments