From 2d992f235e687565d33f80dd6f7b2bd8e1f263ca Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Fri, 13 Dec 2024 23:27:08 -0300 Subject: [PATCH] bunker: fix MarshalIndent() is not allowed to have a prefix on json-iterator. --- bunker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bunker.go b/bunker.go index 177ebc3..179ba9e 100644 --- a/bunker.go +++ b/bunker.go @@ -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))