mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-24 10:07:04 +02:00
Set table name in store
This commit is contained in:
parent
b3915b6020
commit
38cdb9cc2f
@ -110,7 +110,7 @@ func (s *service) Init(opts ...Option) {
|
||||
|
||||
// Explicitly set the table name to the service name
|
||||
name := s.opts.Cmd.App().Name
|
||||
store.DefaultStore.Init(store.Table(name))
|
||||
s.opts.Store.Init(store.Table(name))
|
||||
|
||||
// TODO: replace Cmd.Init with config.Load
|
||||
// Right now we're just going to load a token
|
||||
|
Loading…
Reference in New Issue
Block a user