Skip to content

Commit

Permalink
feat(da): gosec lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxcanfly committed Nov 1, 2024
1 parent baadccf commit 36a37b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ func main() {
mux := http.NewServeMux()
mux.Handle("/metrics", promhttp.Handler())
metricsServer = &http.Server{
Addr: metricsAddress,
Handler: mux,
Addr: metricsAddress,
Handler: mux,
ReadHeaderTimeout: 5 * time.Second,
}
go func() {
log.Printf("Starting metrics server on %v...\n", metricsAddress)
Expand Down

0 comments on commit 36a37b7

Please sign in to comment.