ditto for seettings & webdav
This commit is contained in:
@@ -2,12 +2,13 @@ package command
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"github.com/owncloud/ocis/settings/pkg/metrics"
|
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/owncloud/ocis/settings/pkg/metrics"
|
||||||
|
|
||||||
"contrib.go.opencensus.io/exporter/jaeger"
|
"contrib.go.opencensus.io/exporter/jaeger"
|
||||||
"contrib.go.opencensus.io/exporter/ocagent"
|
"contrib.go.opencensus.io/exporter/ocagent"
|
||||||
"contrib.go.opencensus.io/exporter/zipkin"
|
"contrib.go.opencensus.io/exporter/zipkin"
|
||||||
@@ -143,8 +144,8 @@ func Server(cfg *config.Config) *cli.Command {
|
|||||||
http.Context(ctx),
|
http.Context(ctx),
|
||||||
http.Config(cfg),
|
http.Config(cfg),
|
||||||
http.Metrics(mtrcs),
|
http.Metrics(mtrcs),
|
||||||
http.Flags(flagset.RootWithConfig(cfg)),
|
http.Flags(flagset.RootWithConfig(config.New())),
|
||||||
http.Flags(flagset.ServerWithConfig(cfg)),
|
http.Flags(flagset.ServerWithConfig(config.New())),
|
||||||
)
|
)
|
||||||
|
|
||||||
gr.Add(server.Run, func(_ error) {
|
gr.Add(server.Run, func(_ error) {
|
||||||
|
|||||||
@@ -139,8 +139,8 @@ func Server(cfg *config.Config) *cli.Command {
|
|||||||
http.Context(ctx),
|
http.Context(ctx),
|
||||||
http.Config(cfg),
|
http.Config(cfg),
|
||||||
http.Metrics(metrics),
|
http.Metrics(metrics),
|
||||||
http.Flags(flagset.RootWithConfig(cfg)),
|
http.Flags(flagset.RootWithConfig(config.New())),
|
||||||
http.Flags(flagset.ServerWithConfig(cfg)),
|
http.Flags(flagset.ServerWithConfig(config.New())),
|
||||||
)
|
)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user