From f1b8ecbdb3febe6deaeadf39af984f8d6e7a78c6 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Sat, 5 Oct 2024 14:46:22 +0300 Subject: [PATCH] store: add new ErrNotConnected error Signed-off-by: Vasiliy Tolstov --- store/store.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/store/store.go b/store/store.go index 49eeff5c..25530cc4 100644 --- a/store/store.go +++ b/store/store.go @@ -7,6 +7,8 @@ import ( ) var ( + // ErrNotConnected is returned when a store is not connected + ErrNotConnected = errors.New("not conected") // ErrNotFound is returned when a key doesn't exist ErrNotFound = errors.New("not found") // ErrInvalidKey is returned when a key has empty or have invalid format