to separate controll ower the http and grpc driven services

This commit is contained in:
Roman Perekhod committed 2025-05-28 12:21:50 +02:00
1 parent 26cbb5396b
commit e1325ca40f
44 files changed
+370 -331

No files matched your search

@@ -39,11 +39,11 @@ func Server(cfg *config.Config) *cli.Command {
logger := logging.Configure(cfg.Service.Name, cfg.Log)
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
traceProvider, err := tracing.GetServiceTraceProvider(cfg.Tracing, cfg.Service.Name)
if err != nil {