From 2c1040971aec6489fb072d4eae8e964d24ba114a Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Thu, 14 May 2015 22:10:19 -0700 Subject: [PATCH] store: Move initialize type next to initializers. Signed-off-by: Andrea Luzzardi --- pkg/store/store.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/store/store.go b/pkg/store/store.go index 8c3b2f6877..a744e00404 100644 --- a/pkg/store/store.go +++ b/pkg/store/store.go @@ -22,9 +22,6 @@ const ( // and is triggered on key change type WatchCallback func(entries ...*KVPair) -// Initialize creates a new Store object, initializing the client -type Initialize func(addrs []string, options *Config) (Store, error) - // Store represents the backend K/V storage // Each store should support every call listed // here. Or it couldn't be implemented as a K/V @@ -86,6 +83,9 @@ type Locker interface { Unlock() error } +// Initialize creates a new Store object, initializing the client +type Initialize func(addrs []string, options *Config) (Store, error) + var ( // Backend initializers initializers = map[Backend]Initialize{