Browse Source

Fix comment (#2775)

pull/2551/merge
Marco Munizaga 7 months ago
committed by GitHub
parent
commit
e61c36f9d7
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      libp2p.go

2
libp2p.go

@ -48,7 +48,7 @@ func ChainOptions(opts ...Option) Option {
// - If no peerstore is provided, the host is initialized with an empty
// peerstore.
//
// To stop/shutdown the returned libp2p node, the user needs to cancel the passed context and call `Close` on the returned Host.
// To stop/shutdown the returned libp2p node, the user needs to call `Close` on the returned Host.
func New(opts ...Option) (host.Host, error) {
return NewWithoutDefaults(append(opts, FallbackDefaults)...)
}

Loading…
Cancel
Save