Skip to content

Commit

Permalink
Update healthz.go
Browse files Browse the repository at this point in the history
  • Loading branch information
nnqq authored Jul 19, 2021
1 parent 94e32ba commit b1ff740
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions healthz.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ func (h *healthz) Serve() error {
return http.ListenAndServe(h.addr, h.mux)
}

func (h *healthz) MustServe() {
err := http.ListenAndServe(h.addr, h.mux)
if err != nil {
panic(err)
}
}

type Option func(*options)

func Mux(mux *http.ServeMux) Option {
Expand Down

0 comments on commit b1ff740

Please sign in to comment.