msgr->set_auth_client(&dummy_auth);
msgr->set_auth_server(&dummy_auth);
return msgr->bind(entity_addrvec_t{addr}).safe_then([this] {
- return msgr->start(*this);
+ return msgr->start({this});
}, crimson::net::Messenger::bind_ertr::all_same_way(
[addr] (const std::error_code& e) {
logger().error("test_echo(): "
msgr->set_default_policy(crimson::net::SocketPolicy::lossy_client(0));
msgr->set_auth_client(&dummy_auth);
msgr->set_auth_server(&dummy_auth);
- return msgr->start(*this);
+ return msgr->start({this});
}
seastar::future<> shutdown() {
msgr->set_auth_client(&dummy_auth);
msgr->set_auth_server(&dummy_auth);
return msgr->bind(entity_addrvec_t{addr}).safe_then([this] {
- return msgr->start(*this);
+ return msgr->start({this});
}, crimson::net::Messenger::bind_ertr::all_same_way(
[addr] (const std::error_code& e) {
logger().error("test_concurrent_dispatch(): "
msgr->set_default_policy(crimson::net::SocketPolicy::lossy_client(0));
msgr->set_auth_client(&dummy_auth);
msgr->set_auth_server(&dummy_auth);
- return msgr->start(*this);
+ return msgr->start({this});
}
};
};
msgr->set_auth_client(&dummy_auth);
msgr->set_auth_server(&dummy_auth);
return msgr->bind(entity_addrvec_t{addr}).safe_then([this] {
- return msgr->start(*this);
+ return msgr->start({this});
}, crimson::net::Messenger::bind_ertr::all_same_way(
[addr] (const std::error_code& e) {
logger().error("test_preemptive_shutdown(): "
msgr->set_default_policy(crimson::net::SocketPolicy::lossy_client(0));
msgr->set_auth_client(&dummy_auth);
msgr->set_auth_server(&dummy_auth);
- return msgr->start(*this);
+ return msgr->start({this});
}
void send_pings(const entity_addr_t& addr) {
auto conn = msgr->connect(addr, entity_name_t::TYPE_OSD);
test_msgr->set_auth_server(&dummy_auth);
test_msgr->interceptor = &interceptor;
return test_msgr->bind(entity_addrvec_t{addr}).safe_then([this] {
- return test_msgr->start(*this);
+ return test_msgr->start({this});
}, Messenger::bind_ertr::all_same_way([addr] (const std::error_code& e) {
logger().error("FailoverSuite: "
"there is another instance running at {}", addr);
cmd_msgr->set_default_policy(SocketPolicy::lossy_client(0));
cmd_msgr->set_auth_client(&dummy_auth);
cmd_msgr->set_auth_server(&dummy_auth);
- return cmd_msgr->start(*this).then([this, cmd_peer_addr] {
+ return cmd_msgr->start({this}).then([this, cmd_peer_addr] {
logger().info("CmdCli connect to CmdSrv({}) ...", cmd_peer_addr);
cmd_conn = cmd_msgr->connect(cmd_peer_addr, entity_name_t::TYPE_OSD);
return pingpong();
peer_msgr->set_auth_client(&dummy_auth);
peer_msgr->set_auth_server(&dummy_auth);
return peer_msgr->bind(entity_addrvec_t{addr}).safe_then([this] {
- return peer_msgr->start(*this);
+ return peer_msgr->start({this});
}, Messenger::bind_ertr::all_same_way([addr] (const std::error_code& e) {
logger().error("FailoverSuitePeer: "
"there is another instance running at {}", addr);
cmd_msgr->set_auth_client(&dummy_auth);
cmd_msgr->set_auth_server(&dummy_auth);
return cmd_msgr->bind(entity_addrvec_t{cmd_peer_addr}).safe_then([this] {
- return cmd_msgr->start(*this);
+ return cmd_msgr->start({this});
}, Messenger::bind_ertr::all_same_way([cmd_peer_addr] (const std::error_code& e) {
logger().error("FailoverTestPeer: "
"there is another instance running at {}", cmd_peer_addr);