Skip to content

Commit 21ad624

Browse files
author
Aaron Schlesinger
committed
fix(pkg/healthsrv/server.go): only access port
assume the health server will server on :$PORT
1 parent 64cde22 commit 21ad624

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/healthsrv/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ const (
1313
)
1414

1515
// Start starts the healthcheck server on $host:$port and blocks. It only returns if the server fails, with the indicative error
16-
func Start(host string, port int, s3Client *s3.S3) error {
16+
func Start(port int, s3Client *s3.S3) error {
1717
mux := http.NewServeMux()
1818
mux.Handle("/healthz", healthZHandler(s3Client))
1919

20-
hostStr := fmt.Sprintf("%s:%d", host, port)
20+
hostStr := fmt.Sprintf("%d", port)
2121
return http.ListenAndServe(hostStr, mux)
2222
}

0 commit comments

Comments
 (0)