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 <gammazero@users.noreply.github.com>
  • Loading branch information
MarcoPolo and gammazero committed Aug 29, 2023
1 parent 1ecf648 commit 04ec0c0
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 04ec0c0

Please sign in to comment.