bunker: fix MarshalIndent() is not allowed to have a prefix on json-iterator.

This commit is contained in:
fiatjaf 2024-12-13 23:27:08 -03:00
parent 7675929056
commit 2d992f235e

View File

@ -188,9 +188,9 @@ var bunker = &cli.Command{
continue 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)) 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)) log("~ responding with %s\n", string(jresp))
handlerWg.Add(len(relayURLs)) handlerWg.Add(len(relayURLs))