mirror of
https://github.com/owncloud/ocis
synced 2026-04-25 17:25:21 +02:00
to separate controll ower the http and grpc driven services
This commit is contained in:
@@ -44,11 +44,11 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
}
|
||||
|
||||
var cancel context.CancelFunc
|
||||
ctx := cfg.Context
|
||||
if ctx == nil {
|
||||
ctx, cancel = signal.NotifyContext(context.Background(), runner.StopSignals...)
|
||||
if cfg.Context == nil {
|
||||
cfg.Context, cancel = signal.NotifyContext(context.Background(), runner.StopSignals...)
|
||||
defer cancel()
|
||||
}
|
||||
ctx := cfg.Context
|
||||
|
||||
mtrcs := metrics.New()
|
||||
mtrcs.BuildInfo.WithLabelValues(version.GetString()).Set(1)
|
||||
|
||||
Reference in New Issue
Block a user