mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-23 00:02:37 +00:00
endpoint_state: const-qualify functions
Signed-off-by: Duarte Nunes <duarte@scylladb.com>
This commit is contained in:
@@ -129,7 +129,7 @@ public:
|
||||
/**
|
||||
* @return System.nanoTime() when state was updated last time.
|
||||
*/
|
||||
clk::time_point get_update_timestamp() {
|
||||
clk::time_point get_update_timestamp() const {
|
||||
return _update_timestamp;
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ public:
|
||||
_update_timestamp = clk::now();
|
||||
}
|
||||
|
||||
bool is_alive() {
|
||||
bool is_alive() const {
|
||||
return _is_alive;
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@ public:
|
||||
_is_alive = false;
|
||||
}
|
||||
|
||||
bool is_shutdown() {
|
||||
bool is_shutdown() const {
|
||||
auto app_state = get_application_state(application_state::STATUS);
|
||||
if (!app_state) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user