add storage metadata to the runtime and fix its config parsing when running on supervised mode

This commit is contained in:
A.Unger
2021-03-03 17:36:03 +01:00
parent 22e3d2fd35
commit 59de8198c6
8 changed files with 84 additions and 95 deletions

View File

@@ -117,11 +117,11 @@ type SutureService struct {
// NewSutureService creates a new settings.SutureService
func NewSutureService(ctx context.Context, cfg *config.Config) SutureService {
sctx, scancel := context.WithCancel(ctx)
sctx, cancel := context.WithCancel(ctx)
cfg.Context = sctx // propagate the context down to the go-micro services.
return SutureService{
ctx: sctx,
cancel: scancel,
cancel: cancel,
cfg: cfg,
}
}