mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
utils: Ensure const correctness of injection_handler::get().
Make utils::error_injection::injection_handler::get() method 'const' as it does not mutate object's state.
This commit is contained in:
@@ -235,7 +235,7 @@ public:
|
||||
}
|
||||
|
||||
template <typename T = std::string_view>
|
||||
std::optional<T> get(std::string_view key) {
|
||||
std::optional<T> get(std::string_view key) const {
|
||||
if (!_shared_data) {
|
||||
on_internal_error(errinj_logger, "injection_shared_data is not initialized");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user