From 0eece8a771d0c105ab0c042bfceb37a79e515c92 Mon Sep 17 00:00:00 2001 From: Hayden Young Date: Thu, 24 Oct 2024 12:18:27 +0100 Subject: [PATCH] docs: Update to connectionEncrypters in libp2p config. --- docs/CONNECTING_PEERS.md | 8 ++++---- docs/GETTING_STARTED.md | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/CONNECTING_PEERS.md b/docs/CONNECTING_PEERS.md index 5c2f1d5..dfded0b 100644 --- a/docs/CONNECTING_PEERS.md +++ b/docs/CONNECTING_PEERS.md @@ -72,7 +72,7 @@ const options = { filter: filters.all }) ], - connectionEncryption: [noise()], + connectionEncrypters: [noise()], streamMuxers: [yamux()], services: { identify: identify(), @@ -114,7 +114,7 @@ const options = { discoverRelays: 1 }) ], - connectionEncryption: [noise()], + connectionEncrypters: [noise()], streamMuxers: [yamux()], connectionGater: { denyDialMultiaddr: () => { @@ -180,7 +180,7 @@ const options = { discoverRelays: 1 }) ], - connectionEncryption: [noise()], + connectionEncrypters: [noise()], streamMuxers: [yamux()], connectionGater: { denyDialMultiaddr: () => { @@ -247,7 +247,7 @@ const options = { discoverRelays: 1 }) ], - connectionEncryption: [noise()], + connectionEncrypters: [noise()], streamMuxers: [yamux()], connectionGater: { denyDialMultiaddr: () => { diff --git a/docs/GETTING_STARTED.md b/docs/GETTING_STARTED.md index ed7bcd4..5b8e5e0 100644 --- a/docs/GETTING_STARTED.md +++ b/docs/GETTING_STARTED.md @@ -50,7 +50,7 @@ A simple Node.js example might look something like: transports: [ tcp() ], - connectionEncryption: [noise()], + connectionEncrypters: [noise()], streamMuxers: [yamux()], services: { identify: identify(), @@ -79,7 +79,7 @@ export const Libp2pOptions = { transports: [ tcp() ], - connectionEncryption: [noise()], + connectionEncrypters: [noise()], streamMuxers: [yamux()], services: { identify: identify(),