Skip to content

Commit

Permalink
rename the reuseport package to reuseport
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed May 3, 2022
1 parent c87c3c5 commit 8aa4fd4
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion p2p/net/reuseport/dial.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tcpreuse
package reuseport

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion p2p/net/reuseport/listen.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tcpreuse
package reuseport

import (
"net"
Expand Down
2 changes: 1 addition & 1 deletion p2p/net/reuseport/multidialer.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tcpreuse
package reuseport

import (
"context"
Expand Down
4 changes: 2 additions & 2 deletions p2p/net/reuseport/reuseport.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package tcpreuse
package reuseport

import (
"context"
"net"

reuseport "github.com/libp2p/go-reuseport"
"github.com/libp2p/go-reuseport"
)

var fallbackDialer net.Dialer
Expand Down
2 changes: 1 addition & 1 deletion p2p/net/reuseport/reuseport_plan9.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tcpreuse
package reuseport

import (
"net"
Expand Down
2 changes: 1 addition & 1 deletion p2p/net/reuseport/reuseport_posix.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//go:build !plan9
// +build !plan9

package tcpreuse
package reuseport

import (
"net"
Expand Down
2 changes: 1 addition & 1 deletion p2p/net/reuseport/reuseport_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//go:build !plan9
// +build !plan9

package tcpreuse
package reuseport

import (
"net"
Expand Down
2 changes: 1 addition & 1 deletion p2p/net/reuseport/singledialer.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tcpreuse
package reuseport

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion p2p/net/reuseport/transport.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tcpreuse
package reuseport

import (
"errors"
Expand Down
2 changes: 1 addition & 1 deletion p2p/net/reuseport/transport_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tcpreuse
package reuseport

import (
"net"
Expand Down
4 changes: 2 additions & 2 deletions p2p/transport/tcp/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"syscall"
"time"

rtpt "github.com/libp2p/go-libp2p/p2p/net/reuseport"
"github.com/libp2p/go-libp2p/p2p/net/reuseport"

"github.com/libp2p/go-libp2p-core/network"
"github.com/libp2p/go-libp2p-core/peer"
Expand Down Expand Up @@ -121,7 +121,7 @@ type TcpTransport struct {

rcmgr network.ResourceManager

reuse rtpt.Transport
reuse reuseport.Transport
}

var _ transport.Transport = &TcpTransport{}
Expand Down

0 comments on commit 8aa4fd4

Please sign in to comment.