From 611e1a5d01d8844563325ef878ba41b8eefd5a06 Mon Sep 17 00:00:00 2001 From: Marco Munizaga Date: Mon, 28 Aug 2023 15:41:15 -0700 Subject: [PATCH] Update p2p/http/libp2phttp.go Co-authored-by: Andrew Gillis --- p2p/http/libp2phttp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/http/libp2phttp.go b/p2p/http/libp2phttp.go index 28f5c7a82d..42c4333b85 100644 --- a/p2p/http/libp2phttp.go +++ b/p2p/http/libp2phttp.go @@ -749,7 +749,7 @@ func (h *Host) getAndStorePeerMetadata(roundtripper http.RoundTripper, server pe meta := PeerMeta{} err = json.NewDecoder(&io.LimitedReader{ R: resp.Body, - N: 8 << 10, + N: peerMetadataLimit, }).Decode(&meta) if err != nil { return nil, err