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-p2p-swarm
Commits
495154fc
Commit
495154fc
authored
Oct 03, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch to using stdlib context package
parent
adef95b8
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
11 additions
and
11 deletions
+11
-11
addr/addr.go
addr/addr.go
+1
-1
dial_test.go
dial_test.go
+1
-1
peers_test.go
peers_test.go
+1
-1
simul_test.go
simul_test.go
+1
-1
swarm_addr_test.go
swarm_addr_test.go
+1
-1
swarm_conn.go
swarm_conn.go
+1
-1
swarm_listen.go
swarm_listen.go
+1
-1
swarm_net.go
swarm_net.go
+1
-1
swarm_net_test.go
swarm_net_test.go
+1
-1
swarm_notif_test.go
swarm_notif_test.go
+1
-1
swarm_test.go
swarm_test.go
+1
-1
No files found.
addr/addr.go
View file @
495154fc
...
...
@@ -3,10 +3,10 @@ package addrutil
import
(
"fmt"
"context"
logging
"github.com/ipfs/go-log"
ma
"github.com/jbenet/go-multiaddr"
manet
"github.com/jbenet/go-multiaddr-net"
context
"golang.org/x/net/context"
_
"github.com/whyrusleeping/ws-transport"
)
...
...
dial_test.go
View file @
495154fc
...
...
@@ -10,11 +10,11 @@ import (
testutil
"github.com/libp2p/go-libp2p/testutil"
ci
"github.com/libp2p/go-libp2p/testutil/ci"
"context"
peer
"github.com/ipfs/go-libp2p-peer"
pstore
"github.com/ipfs/go-libp2p-peerstore"
ma
"github.com/jbenet/go-multiaddr"
manet
"github.com/jbenet/go-multiaddr-net"
context
"golang.org/x/net/context"
)
func
closeSwarms
(
swarms
[]
*
Swarm
)
{
...
...
peers_test.go
View file @
495154fc
...
...
@@ -3,10 +3,10 @@ package swarm
import
(
"testing"
"context"
peer
"github.com/ipfs/go-libp2p-peer"
pstore
"github.com/ipfs/go-libp2p-peerstore"
ma
"github.com/jbenet/go-multiaddr"
context
"golang.org/x/net/context"
)
func
TestPeers
(
t
*
testing
.
T
)
{
...
...
simul_test.go
View file @
495154fc
...
...
@@ -8,10 +8,10 @@ import (
ci
"github.com/libp2p/go-libp2p/testutil/ci"
"context"
peer
"github.com/ipfs/go-libp2p-peer"
pstore
"github.com/ipfs/go-libp2p-peerstore"
ma
"github.com/jbenet/go-multiaddr"
context
"golang.org/x/net/context"
)
func
TestSimultOpen
(
t
*
testing
.
T
)
{
...
...
swarm_addr_test.go
View file @
495154fc
...
...
@@ -7,9 +7,9 @@ import (
addrutil
"github.com/libp2p/go-libp2p/p2p/net/swarm/addr"
testutil
"github.com/libp2p/go-libp2p/testutil"
"context"
pstore
"github.com/ipfs/go-libp2p-peerstore"
ma
"github.com/jbenet/go-multiaddr"
context
"golang.org/x/net/context"
)
func
TestFilterAddrs
(
t
*
testing
.
T
)
{
...
...
swarm_conn.go
View file @
495154fc
...
...
@@ -6,11 +6,11 @@ import (
inet
"github.com/libp2p/go-libp2p/p2p/net"
conn
"github.com/libp2p/go-libp2p/p2p/net/conn"
"context"
ic
"github.com/ipfs/go-libp2p-crypto"
peer
"github.com/ipfs/go-libp2p-peer"
ma
"github.com/jbenet/go-multiaddr"
ps
"github.com/jbenet/go-peerstream"
context
"golang.org/x/net/context"
)
// Conn is a simple wrapper around a ps.Conn that also exposes
...
...
swarm_listen.go
View file @
495154fc
...
...
@@ -3,6 +3,7 @@ package swarm
import
(
"fmt"
"context"
lgbl
"github.com/ipfs/go-libp2p-loggables"
ma
"github.com/jbenet/go-multiaddr"
ps
"github.com/jbenet/go-peerstream"
...
...
@@ -10,7 +11,6 @@ import (
mconn
"github.com/libp2p/go-libp2p/p2p/metrics/conn"
inet
"github.com/libp2p/go-libp2p/p2p/net"
conn
"github.com/libp2p/go-libp2p/p2p/net/conn"
context
"golang.org/x/net/context"
)
func
(
s
*
Swarm
)
AddListenAddr
(
a
ma
.
Multiaddr
)
error
{
...
...
swarm_net.go
View file @
495154fc
...
...
@@ -8,9 +8,9 @@ import (
metrics
"github.com/libp2p/go-libp2p/p2p/metrics"
inet
"github.com/libp2p/go-libp2p/p2p/net"
"context"
ma
"github.com/jbenet/go-multiaddr"
"github.com/jbenet/goprocess"
context
"golang.org/x/net/context"
)
// Network implements the inet.Network interface.
...
...
swarm_net_test.go
View file @
495154fc
...
...
@@ -7,7 +7,7 @@ import (
inet
"github.com/libp2p/go-libp2p/p2p/net"
testutil
"github.com/libp2p/go-libp2p/p2p/test/util"
context
"golang.org/x/net/
context"
"
context"
)
// TestConnectednessCorrect starts a few networks, connects a few
...
...
swarm_notif_test.go
View file @
495154fc
...
...
@@ -4,10 +4,10 @@ import (
"testing"
"time"
"context"
peer
"github.com/ipfs/go-libp2p-peer"
ma
"github.com/jbenet/go-multiaddr"
inet
"github.com/libp2p/go-libp2p/p2p/net"
context
"golang.org/x/net/context"
)
func
streamsSame
(
a
,
b
inet
.
Stream
)
bool
{
...
...
swarm_test.go
View file @
495154fc
...
...
@@ -13,10 +13,10 @@ import (
inet
"github.com/libp2p/go-libp2p/p2p/net"
testutil
"github.com/libp2p/go-libp2p/testutil"
"context"
peer
"github.com/ipfs/go-libp2p-peer"
pstore
"github.com/ipfs/go-libp2p-peerstore"
ma
"github.com/jbenet/go-multiaddr"
context
"golang.org/x/net/context"
)
func
EchoStreamHandler
(
stream
inet
.
Stream
)
{
...
...
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