Skip to content

Commit

Permalink
bunker: fix MarshalIndent() is not allowed to have a prefix on json-i…
Browse files Browse the repository at this point in the history
…terator.
  • Loading branch information
fiatjaf committed Dec 14, 2024
1 parent 7675929 commit 2d992f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bunker.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ var bunker = &cli.Command{
continue
}

jreq, _ := json.MarshalIndent(req, " ", " ")
jreq, _ := json.MarshalIndent(req, "", " ")
log("- got request from '%s': %s\n", color.New(color.Bold, color.FgBlue).Sprint(ie.Event.PubKey), string(jreq))
jresp, _ := json.MarshalIndent(resp, " ", " ")
jresp, _ := json.MarshalIndent(resp, "", " ")
log("~ responding with %s\n", string(jresp))

handlerWg.Add(len(relayURLs))
Expand Down

0 comments on commit 2d992f2

Please sign in to comment.