From e0adbfab350b99d848c967cdd1b3ac293a387998 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Sun, 29 Nov 2020 17:19:47 -0800 Subject: [PATCH] State: Expose NoopStore implementation type --- state/store/store.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/state/store/store.go b/state/store/store.go index 5d1bd65..bab1a34 100644 --- a/state/store/store.go +++ b/state/store/store.go @@ -114,9 +114,12 @@ func (errs *ResetErrors) append(err error) { } } +// Noop is the value for a NoopStore. +var Noop = NoopStore{} + // Noop is a no-op implementation of all store interfaces. Its getters will // always return ErrNotFound, and its setters will never return an error. -var Noop = noop{} +type NoopStore = noop // NoopCabinet is a store cabinet with all store methods set to the Noop // implementations.