misc_services: use locator::topology rather than fb_utilities

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
This commit is contained in:
Benny Halevy
2023-11-30 13:57:41 +02:00
parent d49d10dbdb
commit 0e5754adc6
2 changed files with 5 additions and 1 deletions

View File

@@ -69,5 +69,9 @@ public:
void start_broadcasting();
future<> stop_broadcasting();
const gms::gossiper& gossiper() const noexcept {
return _gossiper;
};
};
}

View File

@@ -48,7 +48,7 @@ future<std::map<sstring, double>> load_meter::get_load_map() {
llogger.debug("load_broadcaster is not set yet!");
}
load_map.emplace(format("{}",
utils::fb_utilities::get_broadcast_address()), get_load());
_lb->gossiper().get_broadcast_address()), get_load());
return load_map;
});
}