// to prevent other dispatchers from processing it, and returns a future
// to throttle the connection if it's too busy. Else, it returns false and
// the second future is ignored.
- virtual std::tuple<bool, seastar::future<>> ms_dispatch(Connection* conn, MessageRef m) {
- return {false, seastar::now<>()};
- }
+ virtual std::tuple<bool, seastar::future<>> ms_dispatch(Connection*, MessageRef) = 0;
virtual void ms_handle_accept(ConnectionRef conn) {}
crimson::net::MessengerRef msgr;
crimson::auth::DummyAuthClientServer dummy_auth;
+ std::tuple<bool, seastar::future<>> ms_dispatch(
+ crimson::net::Connection* c, MessageRef m) override {
+ return {true, seastar::now()};
+ }
+
seastar::future<> init(const entity_name_t& name,
const std::string& lname,
const uint64_t nonce) {