mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 04:04:00 -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{}
|
|
}
|