Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions bootstrap/handlers/httpserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,13 @@ func (b *HttpServer) BootstrapHandler(
return false
}

b.router.Use(func(next http.Handler) http.Handler {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!!

return http.TimeoutHandler(next, timeout, "HTTP request timeout")
})

server := &http.Server{
Addr: addr,
Handler: b.router,
WriteTimeout: timeout,
ReadTimeout: timeout,
Addr: addr,
Handler: b.router,
}

wg.Add(1)
Expand Down