aboutsummaryrefslogtreecommitdiffstats
path: root/messagebus_test/src/tests/error/cpp-client.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-10-04 22:05:19 +0200
committerHenning Baldersheim <balder@oath.com>2018-10-04 22:05:19 +0200
commit0bdd3c5fa4326ed4106b9aee0585d57c7193bd97 (patch)
tree2b519cf259eb30ab28d85fc560a589457f54ed17 /messagebus_test/src/tests/error/cpp-client.cpp
parent3f2b1a9230fbab12f2e8b5afcf1e0ad72f3d872a (diff)
Remove the costly and unnecessary setSlobrokId interface.
Diffstat (limited to 'messagebus_test/src/tests/error/cpp-client.cpp')
-rw-r--r--messagebus_test/src/tests/error/cpp-client.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/messagebus_test/src/tests/error/cpp-client.cpp b/messagebus_test/src/tests/error/cpp-client.cpp
index 44580400e26..2a3376336ea 100644
--- a/messagebus_test/src/tests/error/cpp-client.cpp
+++ b/messagebus_test/src/tests/error/cpp-client.cpp
@@ -20,10 +20,9 @@ public:
int
App::Main()
{
- RPCMessageBus mb(ProtocolSet().add(IProtocol::SP(new SimpleProtocol())),
- RPCNetworkParams()
- .setIdentity(Identity("server/cpp"))
- .setSlobrokConfig("file:slobrok.cfg"),
+ RPCMessageBus mb(ProtocolSet().add(std::make_shared<SimpleProtocol>()),
+ RPCNetworkParams("file:slobrok.cfg")
+ .setIdentity(Identity("server/cpp")),
"file:routing.cfg");
Receptor src;