mirror of
https://github.com/go-micro/go-micro.git
synced 2025-07-12 22:41:07 +02:00
cruft
This commit is contained in:
@ -47,6 +47,13 @@ func (s *serviceStore) Init(opts ...store.Option) error {
|
|||||||
func (s *serviceStore) Context() context.Context {
|
func (s *serviceStore) Context() context.Context {
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
md := make(metadata.Metadata)
|
md := make(metadata.Metadata)
|
||||||
|
if len(s.Database) > 0 {
|
||||||
|
md["Micro-Database"] = s.Database
|
||||||
|
}
|
||||||
|
|
||||||
|
if len(s.Table) > 0 {
|
||||||
|
md["Micro-Table"] = s.Table
|
||||||
|
}
|
||||||
return metadata.NewContext(ctx, md)
|
return metadata.NewContext(ctx, md)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user