2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 21:45:37 +00:00

[#3253] Minor cleanup

modified:
   monitored_duration_store.cc
   monitored_duration_store.h
This commit is contained in:
Thomas Markwalder
2024-02-27 06:54:06 -05:00
parent cad53e4df4
commit 15de1cf1f8
2 changed files with 9 additions and 9 deletions

View File

@@ -112,7 +112,7 @@ MonitoredDurationStore::deleteDuration(DurationKeyPtr key) {
return;
}
// Remove the context from the store.
// Remove the duration from the store.
durations_.erase(duration_iter);
}

View File

@@ -124,6 +124,14 @@ public:
/// @brief Removes all durations from the store.
void clear();
/// @brief Get protocol family
///
/// @return uint16_t containing the family (AF_INET or AF_INET6)
uint16_t getFamily() {
return (family_);
}
private:
/// @brief Convenience method to verify a key is valid for an operation.
///
/// @param label description of where the check is being made, appears in exception text.
@@ -133,14 +141,6 @@ public:
/// match the store.
void validateKey(const std::string& label, DurationKeyPtr key) const;
/// @brief Get protocol family
///
/// @return uint16_t containing the family (AF_INET or AF_INET6)
uint16_t getFamily() {
return (family_);
}
private:
/// @brief Protocol family AF_INET or AF_INET6.
uint16_t family_;