storage_proxy::drain_on_shutdown fixup indentation

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
This commit is contained in:
Benny Halevy
2019-09-25 11:17:46 +03:00
parent b7c7af8a75
commit e9388b3f03

View File

@@ -3762,10 +3762,10 @@ void storage_proxy::on_down(const gms::inet_address& endpoint) {
future<> storage_proxy::drain_on_shutdown() {
return do_with(::shared_ptr<abstract_write_response_handler>(), [this] (::shared_ptr<abstract_write_response_handler>& intrusive_list_guard) {
return do_for_each(*_view_update_handlers_list, [this, &intrusive_list_guard] (abstract_write_response_handler& handler) {
if (_response_handlers.find(handler.id()) != _response_handlers.end()) {
intrusive_list_guard = handler.shared_from_this();
handler.timeout_cb();
}
if (_response_handlers.find(handler.id()) != _response_handlers.end()) {
intrusive_list_guard = handler.shared_from_this();
handler.timeout_cb();
}
});
}).then([this] {
return _hints_resource_manager.stop();