misc_services: use locator::topology rather than fb_utilities
Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
This commit is contained in:
@@ -69,5 +69,9 @@ public:
|
||||
|
||||
void start_broadcasting();
|
||||
future<> stop_broadcasting();
|
||||
|
||||
const gms::gossiper& gossiper() const noexcept {
|
||||
return _gossiper;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user