Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Commit

Permalink
Merge pull request #44 from owncloud/fix-micro-options
Browse files Browse the repository at this point in the history
pass flags to micro service
  • Loading branch information
C0rby authored Apr 20, 2020
2 parents 3bc901d + e1e8ad5 commit b70c770
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/fix-micro-options.md
Original file line number Diff line number Diff line change
@@ -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/44
2 changes: 1 addition & 1 deletion service/grpc/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit b70c770

Please sign in to comment.