always pass in a client

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2021-02-18 10:58:56 +00:00
parent 11ed5e49d8
commit d9f4a4c524
6 changed files with 13 additions and 21 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ import (
"github.com/owncloud/ocis/ocis-pkg/registry"
"github.com/asim/go-micro/plugins/server/http/v3"
mhttps "github.com/asim/go-micro/plugins/server/http/v3"
"github.com/asim/go-micro/v3"
"github.com/asim/go-micro/v3/server"
)
@@ -26,7 +26,7 @@ func NewService(opts ...Option) Service {
Msg("starting server")
wopts := []micro.Option{
micro.Server(http.NewServer(server.TLSConfig(sopts.TLSConfig))),
micro.Server(mhttps.NewServer(server.TLSConfig(sopts.TLSConfig))),
micro.Address(sopts.Address),
micro.Name(strings.Join([]string{sopts.Namespace, sopts.Name}, ".")),
micro.Version(sopts.Version),