mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
Update Github Actions Go Version (#12391)
* update github actions * use quotes or it is go 1.2 lol * Update gosec * Update gosec * Update go lint * fix gosec violations --------- Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
This commit is contained in:
@@ -76,7 +76,11 @@ func main() {
|
||||
|
||||
http.HandleFunc("/metrics", MetricsHTTP)
|
||||
http.HandleFunc("/reload", ReloadHTTP)
|
||||
log.Fatal(http.ListenAndServe(fmt.Sprintf("127.0.0.1:%d", *port), nil))
|
||||
srv := &http.Server{
|
||||
Addr: fmt.Sprintf("127.0.0.1:%d", *port),
|
||||
ReadHeaderTimeout: 3 * time.Second,
|
||||
}
|
||||
log.Fatal(srv.ListenAndServe())
|
||||
}
|
||||
|
||||
// Watching address wrapper
|
||||
|
||||
Reference in New Issue
Block a user