Skip to content

Commit

Permalink
Update p2p/http/libp2phttp.go
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Gillis <[email protected]>
  • Loading branch information
MarcoPolo and gammazero authored Aug 28, 2023
1 parent b25eda1 commit 611e1a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/http/libp2phttp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 611e1a5

Please sign in to comment.