Skip to content

Commit

Permalink
quic is enabled automatically
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
  • Loading branch information
jsign committed Mar 17, 2022
1 parent 115b5d6 commit 4f6d116
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions peer/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"github.com/libp2p/go-libp2p-core/peer"
"github.com/libp2p/go-libp2p-peerstore/pstoreds"
ps "github.com/libp2p/go-libp2p-pubsub"
quic "github.com/libp2p/go-libp2p-quic-transport"
"github.com/multiformats/go-multiaddr"
badger "github.com/textileio/go-ds-badger3"
rpc "github.com/textileio/go-libp2p-pubsub-rpc"
Expand Down Expand Up @@ -104,9 +103,6 @@ func New(conf Config) (*Peer, error) {
if conf.EnableNATPortMap {
opts = append(opts, libp2p.NATPortMap())
}
if conf.EnableQUIC {
opts = append(opts, libp2p.Transport(quic.NewTransport))
}

fin := finalizer.NewFinalizer()
ctx, cancel := context.WithCancel(context.Background())
Expand Down

0 comments on commit 4f6d116

Please sign in to comment.