Skip to content

Commit 9056147

Browse files
committed
adapted RpcClient to new signature
1 parent f7a738b commit 9056147

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

rpc/src/main_rpc_client.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,12 @@ int main(int argc, char* argv[]) {
9191
UUri source = getRpcUUri(0);
9292
UUri method = getRpcUUri(METHOD_RPC_RESOURCE_ID);
9393
auto transport = std::make_shared<ZenohUTransport>(source, args.at(1));
94-
auto client = RpcClient(transport, std::move(method),
95-
uprotocol::v1::UPriority::UPRIORITY_CS4,
94+
auto client = RpcClient(transport, uprotocol::v1::UPriority::UPRIORITY_CS4,
9695
std::chrono::milliseconds(RPCCLIENT_TTL));
9796
RpcClient::InvokeHandle handle;
9897

9998
while (!g_terminate) {
100-
handle = client.invokeMethod(OnReceive);
99+
handle = client.invokeMethod(method, OnReceive);
101100
sleep(1);
102101
}
103102

0 commit comments

Comments
 (0)