2023-05-24 07:01:50 +00:00
|
|
|
package tree
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
2023-06-08 13:37:46 +00:00
|
|
|
type MetricsRegister interface {
|
|
|
|
AddReplicateTaskDuration(time.Duration, bool)
|
|
|
|
AddReplicateWaitDuration(time.Duration, bool)
|
|
|
|
AddSyncDuration(time.Duration, bool)
|
|
|
|
}
|
|
|
|
|
2023-05-24 07:01:50 +00:00
|
|
|
type defaultMetricsRegister struct{}
|
|
|
|
|
|
|
|
func (defaultMetricsRegister) AddReplicateTaskDuration(time.Duration, bool) {}
|
|
|
|
func (defaultMetricsRegister) AddReplicateWaitDuration(time.Duration, bool) {}
|
|
|
|
func (defaultMetricsRegister) AddSyncDuration(time.Duration, bool) {}
|