From f20f63ec231c86f11659b3a15ebd90bd03391e14 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Sat, 25 Sep 2021 03:59:55 -0700 Subject: [PATCH] don't use libp2p.ChainOption in README --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 75f5218..5b8166a 100644 --- a/README.md +++ b/README.md @@ -78,9 +78,8 @@ transport. To add multiple tranports, use `ChainOptions`: ``` go // TCP and QUIC: h, err := libp2p.New(ctx, - libp2p.ChainOptions( - libp2p.Transport(tcp.NewTCPTransport), - libp2p.Transport(quic.NewTransport)) // see https://github.com/libp2p/go-libp2p-quic-transport + libp2p.Transport(tcp.NewTCPTransport), + libp2p.Transport(quic.NewTransport), // see https://github.com/libp2p/go-libp2p-quic-transport ) ```