Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Pranay Valson <pranay.valson@gmail.com>
  • Loading branch information
noslav committed May 2, 2023
1 parent 2442d23 commit 7f99874
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 24 deletions.
14 changes: 8 additions & 6 deletions openapi/api_filepin.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 21 additions & 17 deletions openapi/api_pins.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func downloadHandler(cidStr string, node pinner.PinnerNode) ([]byte, error) {
func healthHttpHandler(s *State) http.Handler {
// Check the health of the server and return a status code accordingly
fn := func(w http.ResponseWriter, r *http.Request) {
log.Panicln("Received /health request:", "source=", r.RemoteAddr, "status=", s.status)
log.Println("Received /health request:", "source=", r.RemoteAddr, "status=", s.status)
switch s.status {
case OK:
io.WriteString(w, "I'm healthy")
Expand Down

0 comments on commit 7f99874

Please sign in to comment.