]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3253] Minor cleanup
authorThomas Markwalder <tmark@isc.org>
Tue, 27 Feb 2024 11:54:06 +0000 (06:54 -0500)
committerThomas Markwalder <tmark@isc.org>
Mon, 18 Mar 2024 19:12:14 +0000 (19:12 +0000)
modified:
   monitored_duration_store.cc
   monitored_duration_store.h

src/hooks/dhcp/perfmon/monitored_duration_store.cc
src/hooks/dhcp/perfmon/monitored_duration_store.h

index 292c9c3d83833d32b6ee77ad82fb648267c1a0d5..5d51f8be73defc8e13d4638349ac45f3b405b942 100644 (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);
 }
 
index d4866d5b002cb0580ee125e9f3d7974ee55c7e2b..ea9a7768c36c3c693fd4326218ef7775d8da3a71 100644 (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_;