From 3542d6c824689f8d255657496ada40d02fe03543 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Fri, 6 Nov 2020 00:03:40 +0300 Subject: [PATCH] store: fix comment Signed-off-by: Vasiliy Tolstov --- store/options.go | 7 ------- store/store.go | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/store/options.go b/store/options.go index 4ebf9ecc..27d8b645 100644 --- a/store/options.go +++ b/store/options.go @@ -73,13 +73,6 @@ func Table(t string) Option { } } -// WithContext sets the stores context, for any extra configuration -func WithContext(c context.Context) Option { - return func(o *Options) { - o.Context = c - } -} - // ReadOptions configures an individual Read operation type ReadOptions struct { Database, Table string diff --git a/store/store.go b/store/store.go index 1560e34f..3f6f231a 100644 --- a/store/store.go +++ b/store/store.go @@ -17,7 +17,7 @@ var ( // Store is a data storage interface type Store interface { - // Init initialises the store. It must perform any required setup on the backing storage implementation and check that it is ready for use, returning any errors. + // Init initialises the store Init(opts ...Option) error // Connect is used when store needs to be connected Connect(ctx context.Context) error