Skip to content

Commit

Permalink
peerstore: reduce default protocol limit to 128
Browse files Browse the repository at this point in the history
  • Loading branch information
sukunrt committed Jul 3, 2024
1 parent b36d2a7 commit e848954
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion p2p/host/peerstore/pstoreds/protobook.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func NewProtoBook(meta pstore.PeerMetadata, opts ...ProtoBookOption) (*dsProtoBo
}
return ret
}(),
maxProtos: 1024,
maxProtos: 128,
}

for _, opt := range opts {
Expand Down
2 changes: 1 addition & 1 deletion p2p/host/peerstore/pstoremem/protobook.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func NewProtoBook(opts ...ProtoBookOption) (*memoryProtoBook, error) {
}
return ret
}(),
maxProtos: 1024,
maxProtos: 128,
}

for _, opt := range opts {
Expand Down

0 comments on commit e848954

Please sign in to comment.