remove version from service config

This commit is contained in:
Willy Kloucek
2022-01-03 16:24:39 +01:00
parent 55bf175bea
commit 3d4df5796a
40 changed files with 70 additions and 58 deletions
+3 -2
View File
@@ -9,6 +9,7 @@ import (
pkgcrypto "github.com/owncloud/ocis/ocis-pkg/crypto"
"github.com/owncloud/ocis/ocis-pkg/middleware"
"github.com/owncloud/ocis/ocis-pkg/service/http"
"github.com/owncloud/ocis/ocis-pkg/version"
"go-micro.dev/v4"
)
@@ -42,7 +43,7 @@ func Server(opts ...Option) (http.Service, error) {
http.Logger(options.Logger),
http.Namespace(options.Config.HTTP.Namespace),
http.Name(options.Config.Service.Name),
http.Version(options.Config.Service.Version),
http.Version(version.String),
http.Address(options.Config.HTTP.Addr),
http.Context(options.Context),
http.Flags(options.Flags...),
@@ -60,7 +61,7 @@ func Server(opts ...Option) (http.Service, error) {
middleware.Secure,
middleware.Version(
options.Config.Service.Name,
options.Config.Service.Version,
version.String,
),
middleware.Logger(
options.Logger,