Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-tcp-transport
Commits
45f9c901
Commit
45f9c901
authored
Jul 09, 2019
by
Yusef Napora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix whitespace
parent
edb8780a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
README.md
README.md
+5
-5
No files found.
README.md
View file @
45f9c901
...
...
@@ -58,9 +58,9 @@ To explicitly enable the TCP transport while constructing a host, use the
```
go
import
(
"context"
"context"
libp2p
"github.com/libp2p/go-libp2p"
libp2p
"github.com/libp2p/go-libp2p"
tcp
"github.com/libp2p/go-tcp-transport"
)
...
...
@@ -78,9 +78,9 @@ 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
.
ChainOptions
(
libp2p
.
Transport
(
tcp
.
NewTCPTransport
),
libp2p
.
Transport
(
quic
.
NewTransport
))
// see https://github.com/libp2p/go-libp2p-quic-transport
)
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment