mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 13:09:22 -06:00
17 lines
349 B
Go
17 lines
349 B
Go
package state
|
|
|
|
import (
|
|
"context"
|
|
|
|
"go.opentelemetry.io/otel/trace"
|
|
)
|
|
|
|
type NoopPersister struct{}
|
|
|
|
func (n *NoopPersister) Async(_ context.Context, _ *cache) {}
|
|
func (n *NoopPersister) Sync(_ context.Context, _ trace.Span, _, _ []StateTransition) {}
|
|
|
|
func NewNoopPersister() StatePersister {
|
|
return &NoopPersister{}
|
|
}
|