Marco Munizaga
7 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
libp2p.go
|
@ -48,7 +48,7 @@ func ChainOptions(opts ...Option) Option { |
|
|
// - If no peerstore is provided, the host is initialized with an empty
|
|
|
// - If no peerstore is provided, the host is initialized with an empty
|
|
|
// peerstore.
|
|
|
// 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) { |
|
|
func New(opts ...Option) (host.Host, error) { |
|
|
return NewWithoutDefaults(append(opts, FallbackDefaults)...) |
|
|
return NewWithoutDefaults(append(opts, FallbackDefaults)...) |
|
|
} |
|
|
} |
|
|