Compare commits
No commits in common. "dcc11fca0922f1d8ae25899a5ca21a65364252bf" and "d68724a470192372858a42f5f0e3141378d6be9f" have entirely different histories.
dcc11fca09
...
d68724a470
1 changed files with 1 additions and 7 deletions
8
main.go
8
main.go
|
@ -20,7 +20,6 @@ import (
|
|||
"net/http"
|
||||
"net/netip"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/alecthomas/kingpin/v2"
|
||||
"github.com/go-kit/log"
|
||||
|
@ -147,12 +146,7 @@ func main() {
|
|||
http.Handle("/", landingPage)
|
||||
}
|
||||
|
||||
srv := &http.Server{
|
||||
ReadHeaderTimeout: 15 * time.Second,
|
||||
ReadTimeout: 15 * time.Second,
|
||||
WriteTimeout: 10 * time.Second,
|
||||
IdleTimeout: 30 * time.Second,
|
||||
}
|
||||
srv := &http.Server{}
|
||||
if err := web.ListenAndServe(srv, toolkitFlags, logger); err != nil {
|
||||
level.Error(logger).Log("msg", "Error starting HTTP server", "err", err)
|
||||
os.Exit(1)
|
||||
|
|
Loading…
Reference in a new issue