chore: bump go to 1.18 (#9147)

This commit is contained in:
Callum Waters
2022-08-16 11:00:32 +02:00
committed by Sam Ricotta
parent a332af5073
commit 2ff667ff8e
18 changed files with 253 additions and 1573 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 {