We only have async msgr now, so remove check about simple.
Signed-off-by: haoyixing <haoyixing@kuaishou.com>
entity_name_t name, std::string lname,
uint64_t nonce)
{
- int r = -1;
- if (type == "random") {
- r = 0;
- //r = ceph::util::generate_random_number(0, 1);
- }
- if (r == 0 || type.find("async") != std::string::npos)
+ if (type == "random" || type.find("async") != std::string::npos)
return new AsyncMessenger(cct, name, type, std::move(lname), nonce);
lderr(cct) << "unrecognized ms_type '" << type << "'" << dendl;
return nullptr;