chore: format with golines

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I11a2f3273abf08c8cf02e0c335e26d826a6a6964
This commit is contained in:
raf 2026-03-01 17:16:15 +03:00
commit bf8390a916
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
5 changed files with 54 additions and 11 deletions

View file

@ -47,7 +47,13 @@ func Run(configPath string) error {
metricsAgg.MustRegister(promRegistry)
// Create HTTP handlers
ingestionHandler := api.NewIngestionHandler(*cfg, pathNormalizer, pathRegistry, refRegistry, metricsAgg)
ingestionHandler := api.NewIngestionHandler(
*cfg,
pathNormalizer,
pathRegistry,
refRegistry,
metricsAgg,
)
// Setup routes
mux := http.NewServeMux()
@ -58,7 +64,11 @@ func Run(configPath string) error {
})
if cfg.Security.MetricsAuth.Enabled {
metricsHandler = basicAuth(metricsHandler, cfg.Security.MetricsAuth.Username, cfg.Security.MetricsAuth.Password)
metricsHandler = basicAuth(
metricsHandler,
cfg.Security.MetricsAuth.Username,
cfg.Security.MetricsAuth.Password,
)
}
mux.Handle(cfg.Server.MetricsPath, metricsHandler)