Skip to content

Commit

Permalink
srv
Browse files Browse the repository at this point in the history
  • Loading branch information
icco committed Dec 20, 2024
1 parent 7e9f6de commit 2cbfc4d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tool/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@ func Serve() error {

log.Infow("Starting up", "host", fmt.Sprintf("http://localhost:%s", port))

return http.ListenAndServe(":"+port, router)
srv := &http.Server{
Addr: ":" + port,
Handler: router,
}

return srv.ListenAndServe()
}

func main() {
Expand Down

0 comments on commit 2cbfc4d

Please sign in to comment.