From 5c961b7e144d5e9c2d15499cbf706b5707c0402b Mon Sep 17 00:00:00 2001 From: James Park-Watt Date: Sun, 27 Oct 2024 05:23:32 +0000 Subject: [PATCH] refactor: re-order store declaration to match definition. --- pkg/storage/memory/memory.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/storage/memory/memory.go b/pkg/storage/memory/memory.go index 4edf9e3..694e841 100644 --- a/pkg/storage/memory/memory.go +++ b/pkg/storage/memory/memory.go @@ -26,8 +26,8 @@ type ( // New creates a new In-Mem storage func New() storage.Storage { store := &storageMem{ - storePruneTimer: time.NewTicker(time.Minute), store: make(map[string]memStorageSecret), + storePruneTimer: time.NewTicker(time.Minute), } go store.storePruner()