You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor Prometheus timing metrics across multiple modules
The commit introduces a more efficient approach to handling Prometheus timers across several modules. A new function, `PrometheusTimer`, has been created in `statistics.go` that manages the creation and usage of Prometheus Timers. This function has been utilized across various modules to replace redundant and repetitive code. This change improves code maintainability and promotes a DRY (Don't Repeat Yourself) approach.
Signed-off-by: Christian Roessner <[email protected]>
// err: Error. If an error occurs during the search operation or modification, it will return an error, otherwise this function will return nil.
1137
1136
//
1138
-
// Note: This operation is destructive. It modifies the LDAP directory. Therefore, it should be used judiciously and you should make sure that ldapRequest contains correct values.
1137
+
// Note: This operation is destructive. It modifies the LDAP directory. Therefore, it should be used judiciously, and you should make sure that ldapRequest contains correct values.
0 commit comments