From b69a749e25c3cf7b08b75395a4e65796d5e64393 Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Thu, 12 Dec 2019 10:55:26 +0100 Subject: [PATCH] use flags from options instead of config --- pkg/server/http/server.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkg/server/http/server.go b/pkg/server/http/server.go index a5bef47172..e077922f9c 100644 --- a/pkg/server/http/server.go +++ b/pkg/server/http/server.go @@ -1,9 +1,7 @@ package http import ( - "github.com/owncloud/ocis-konnectd/pkg/config" - "github.com/owncloud/ocis-konnectd/pkg/flagset" - "github.com/owncloud/ocis-konnectd/pkg/service/v0" + svc "github.com/owncloud/ocis-konnectd/pkg/service/v0" "github.com/owncloud/ocis-konnectd/pkg/version" "github.com/owncloud/ocis-pkg/middleware" "github.com/owncloud/ocis-pkg/service/http" @@ -20,8 +18,7 @@ func Server(opts ...Option) (http.Service, error) { http.Version(version.String), http.Address(options.Config.HTTP.Addr), http.Context(options.Context), - http.Flags(flagset.RootWithConfig(config.New())...), - http.Flags(flagset.ServerWithConfig(config.New())...), + http.Flags(options.Flags...), ) handle := svc.NewService(