mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -06:00
18 lines
381 B
Go
18 lines
381 B
Go
package state
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/benbjohnson/clock"
|
|
"go.opentelemetry.io/otel/trace"
|
|
)
|
|
|
|
type NoopPersister struct{}
|
|
|
|
func (n *NoopPersister) Async(_ context.Context, _ *clock.Ticker, _ *cache) {}
|
|
func (n *NoopPersister) Sync(_ context.Context, _ trace.Span, _, _ []StateTransition) {}
|
|
|
|
func NewNoopPersister() StatePersister {
|
|
return &NoopPersister{}
|
|
}
|