Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #102 from libp2p/no-chain-option-readme
Browse files Browse the repository at this point in the history
don't use libp2p.ChainOption in README
  • Loading branch information
marten-seemann authored Sep 25, 2021
2 parents 87d46c6 + f20f63e commit b2842b2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
```

Expand Down

0 comments on commit b2842b2

Please sign in to comment.