pass flags to micro service

This commit is contained in:
David Christofas
2020-04-20 15:52:23 +02:00
parent 3bc901d193
commit 7570e3f904
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
Bugfix: pass flags to micro service
Passed flags to the micro service to be able to pass cli arguments while starting a grpc service.
https://github.com/owncloud/ocis-pkg/pull/55555

View File

@@ -42,7 +42,7 @@ func NewService(opts ...Option) Service {
micro.RegisterTTL(time.Second * 30),
micro.RegisterInterval(time.Second * 10),
micro.Context(sopts.Context),
// micro.Flags(sopts.Flags...),
micro.Flags(sopts.Flags...),
}
return Service{