chore: format with golines
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I11a2f3273abf08c8cf02e0c335e26d826a6a6964
This commit is contained in:
parent
214c992494
commit
bf8390a916
5 changed files with 54 additions and 11 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue