mirror of
https://github.com/libp2p/go-libp2p.git
synced 2025-09-26 20:21:26 +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
|
||||
// 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)...)
|
||||
}
|
||||
|
Reference in New Issue
Block a user