mirror of
https://github.com/libp2p/go-libp2p.git
synced 2025-10-05 16:17:12 +08:00
Fix comment (#2775)
This commit is contained in:
@@ -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)...)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user