chore: bump go to 1.18 (#9147)

This commit is contained in:
Callum Waters
2022-08-08 16:03:12 +02:00
parent 4be2e2266e
commit bdda0ad33b
19 changed files with 254 additions and 512 deletions
+1
View File
@@ -1215,6 +1215,7 @@ func (n *Node) startPrometheusServer(addr string) *http.Server {
promhttp.HandlerOpts{MaxRequestsInFlight: n.config.Instrumentation.MaxOpenConnections},
),
),
ReadHeaderTimeout: 10 * time.Second,
}
go func() {
if err := srv.ListenAndServe(); err != http.ErrServerClosed {