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:
@@ -13,6 +13,7 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/prysmaticlabs/prysm/v4/config/params"
|
||||
)
|
||||
@@ -51,7 +52,11 @@ func main() {
|
||||
}
|
||||
})
|
||||
log.Printf("Listening on port %d", *port)
|
||||
log.Fatal(http.ListenAndServe(":"+strconv.Itoa(*port), nil))
|
||||
srv := &http.Server{
|
||||
Addr: ":" + strconv.Itoa(*port),
|
||||
ReadHeaderTimeout: 3 * time.Second,
|
||||
}
|
||||
log.Fatal(srv.ListenAndServe())
|
||||
}
|
||||
|
||||
func captureRequest(f *os.File, m map[string]interface{}) error {
|
||||
|
||||
Reference in New Issue
Block a user