Alejandro Lopez
bc34fee6a7
All checks were successful
ci/woodpecker/push/pre-commit Pipeline was successful
Signed-off-by: Alejandro Lopez <a.lopez@yadro.com>
15 lines
472 B
Go
15 lines
472 B
Go
package tree
|
|
|
|
import "time"
|
|
|
|
type MetricsRegister interface {
|
|
AddReplicateTaskDuration(time.Duration, bool)
|
|
AddReplicateWaitDuration(time.Duration, bool)
|
|
AddSyncDuration(time.Duration, bool)
|
|
}
|
|
|
|
type defaultMetricsRegister struct{}
|
|
|
|
func (defaultMetricsRegister) AddReplicateTaskDuration(time.Duration, bool) {}
|
|
func (defaultMetricsRegister) AddReplicateWaitDuration(time.Duration, bool) {}
|
|
func (defaultMetricsRegister) AddSyncDuration(time.Duration, bool) {}
|