mirror of
https://github.com/hanzoai/tasks.git
synced 2026-11-03 03:56:04 +00:00
## What changed? Removed per-shard and per-namespace per-shard RPS warning logs since they are no longer valuable.
28 lines
551 B
Go
28 lines
551 B
Go
package persistence
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
var NoopHealthSignalAggregator HealthSignalAggregator = newNoopSignalAggregator()
|
|
|
|
type (
|
|
noopSignalAggregator struct{}
|
|
)
|
|
|
|
func newNoopSignalAggregator() *noopSignalAggregator { return &noopSignalAggregator{} }
|
|
|
|
func (a *noopSignalAggregator) Start() {}
|
|
|
|
func (a *noopSignalAggregator) Stop() {}
|
|
|
|
func (a *noopSignalAggregator) Record(_ int32, _ time.Duration, _ error) {}
|
|
|
|
func (a *noopSignalAggregator) AverageLatency() float64 {
|
|
return 0
|
|
}
|
|
|
|
func (*noopSignalAggregator) ErrorRatio() float64 {
|
|
return 0
|
|
}
|