fix store context issues

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-09-17 15:41:49 +03:00
parent 6021edc855
commit 7e3fac8937
6 changed files with 33 additions and 34 deletions

View File

@@ -86,7 +86,7 @@ func (s *service) Init(opts ...Option) {
}
if s.opts.Store != nil {
if err := s.opts.Store.Init(); err != nil {
if err := s.opts.Store.Init(s.opts.Context); err != nil {
logger.Fatalf("[cmd] init failed: %v", err)
}
}