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

pass flags to micro service #44

Merged
merged 2 commits into from
Apr 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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