repair, transport: s/get0()/get()/

`future::get0()` was deprecated in favor of `future::get()`. so
let's use the latter instead. this change silences a `-Wdeprecated`
warning.

Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>

Closes scylladb/scylladb#18357
This commit is contained in:
Kefu Chai
2024-04-23 12:46:14 +08:00
committed by Botond Dénes
parent 4fd9b2a791
commit 9e8805bb49
2 changed files with 2 additions and 2 deletions

View File

@@ -1336,7 +1336,7 @@ future<> repair::user_requested_repair_task_impl::run() {
} else {
participants = get_hosts_participating_in_repair(germs->get(), keyspace, ranges, data_centers, hosts, ignore_nodes).get();
}
bool hints_batchlog_flushed = flush_hints(rs, id, db, keyspace, cfs, ignore_nodes, participants).get0();
bool hints_batchlog_flushed = flush_hints(rs, id, db, keyspace, cfs, ignore_nodes, participants).get();
std::vector<future<>> repair_results;
repair_results.reserve(smp::count);

View File

@@ -89,7 +89,7 @@ future<> controller::start_listening_on_tcp_sockets(sharded<cql_server>& cserver
_listen_addresses.clear();
std::vector<listen_cfg> configs;
const seastar::net::inet_address ip = utils::resolve(cfg.rpc_address, family, preferred).get0();
const seastar::net::inet_address ip = utils::resolve(cfg.rpc_address, family, preferred).get();
int native_port_idx = -1, native_shard_aware_port_idx = -1;
if (cfg.native_transport_port.is_set() ||