From e61c36f9d79addb4be9b3ea1c27df17d942166a9 Mon Sep 17 00:00:00 2001 From: Marco Munizaga Date: Mon, 22 Apr 2024 10:48:29 -0700 Subject: [PATCH] Fix comment (#2775) --- libp2p.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p.go b/libp2p.go index 9bb36b178..1440648db 100644 --- a/libp2p.go +++ b/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)...) }