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:
@@ -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);
|
||||
}
|
||||
|
||||
|
@@ -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_;
|
||||
|
||||
|
Reference in New Issue
Block a user