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