add more context to store

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-09-17 15:18:01 +03:00
parent 8817c110d0
commit 6021edc855
2 changed files with 4 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ func newStore(opts ...Option) Store {
return &noopStore{opts: options}
}
func (n *noopStore) Init(opts ...Option) error {
func (n *noopStore) Init(ctx context.Context, opts ...Option) error {
for _, o := range opts {
o(&n.opts)
}
@@ -45,6 +45,6 @@ func (n *noopStore) List(ctx context.Context, opts ...ListOption) ([]string, err
return []string{}, nil
}
func (n *noopStore) Close() error {
func (n *noopStore) Close(ctx context.Context) error {
return nil
}