Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
0c73722a
Commit
0c73722a
authored
Nov 15, 2015
by
Jeromy
Browse files
vendor in notifier
parent
d4b42f8e
Changes
82
Show whitespace changes
Inline
Side-by-side
p2p/net/mock/mock_notif_test.go
View file @
0c73722a
...
...
@@ -4,10 +4,10 @@ import (
"testing"
"time"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
inet
"github.com/ipfs/go-libp2p/p2p/net"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
context
"golang.org/x/net/context"
)
func
TestNotifications
(
t
*
testing
.
T
)
{
...
...
p2p/net/mock/mock_peernet.go
View file @
0c73722a
...
...
@@ -8,10 +8,10 @@ import (
inet
"github.com/ipfs/go-libp2p/p2p/net"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
"QmSir6qPL1tjuxd8LkR8VZq6v625ExAUVs2eCLeqQuaPGU/goprocess"
goprocessctx
"QmSir6qPL1tjuxd8LkR8VZq6v625ExAUVs2eCLeqQuaPGU/goprocess/context"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
"github.com/jbenet/goprocess"
goprocessctx
"github.com/jbenet/goprocess/context"
context
"golang.org/x/net/context"
)
// peernet implements inet.Network
...
...
p2p/net/mock/mock_stream.go
View file @
0c73722a
...
...
@@ -5,7 +5,7 @@ import (
"io"
"time"
process
"
github.com/jbenet
/goprocess"
process
"
QmSir6qPL1tjuxd8LkR8VZq6v625ExAUVs2eCLeqQuaPGU
/goprocess"
inet
"github.com/ipfs/go-libp2p/p2p/net"
)
...
...
p2p/net/mock/mock_test.go
View file @
0c73722a
...
...
@@ -14,8 +14,8 @@ import (
protocol
"github.com/ipfs/go-libp2p/p2p/protocol"
testutil
"util/testutil"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
detectrace
"github.com/jbenet/go-detect-race"
context
"golang.org/x/net/context"
)
func
randPeer
(
t
*
testing
.
T
)
peer
.
ID
{
...
...
p2p/net/swarm/addr/addr.go
View file @
0c73722a
...
...
@@ -6,8 +6,8 @@ import (
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
manet
"QmU5s159q8cZuM1f9Vqti4LHu6y8zyVc5dxv2py81sdp6Q/go-multiaddr-net"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
context
"golang.org/x/net/context"
)
var
log
=
logging
.
Logger
(
"github.com/ipfs/go-libp2p/p2p/net/swarm/addr"
)
...
...
p2p/net/swarm/dial_test.go
View file @
0c73722a
...
...
@@ -14,8 +14,8 @@ import (
ci
"util/testutil/ci"
manet
"QmU5s159q8cZuM1f9Vqti4LHu6y8zyVc5dxv2py81sdp6Q/go-multiaddr-net"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
context
"golang.org/x/net/context"
)
func
acceptAndHang
(
l
net
.
Listener
)
{
...
...
p2p/net/swarm/peers_test.go
View file @
0c73722a
...
...
@@ -5,8 +5,8 @@ import (
peer
"github.com/ipfs/go-libp2p/p2p/peer"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
context
"golang.org/x/net/context"
)
func
TestPeers
(
t
*
testing
.
T
)
{
...
...
p2p/net/swarm/simul_test.go
View file @
0c73722a
...
...
@@ -9,8 +9,8 @@ import (
peer
"github.com/ipfs/go-libp2p/p2p/peer"
ci
"util/testutil/ci"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
context
"golang.org/x/net/context"
)
func
TestSimultOpen
(
t
*
testing
.
T
)
{
...
...
p2p/net/swarm/swarm.go
View file @
0c73722a
...
...
@@ -16,15 +16,15 @@ import (
transport
"github.com/ipfs/go-libp2p/p2p/net/transport"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
"QmSir6qPL1tjuxd8LkR8VZq6v625ExAUVs2eCLeqQuaPGU/goprocess"
goprocessctx
"QmSir6qPL1tjuxd8LkR8VZq6v625ExAUVs2eCLeqQuaPGU/goprocess/context"
mafilter
"QmYWqTn1i8yv9QRDzGPJ2yRudKzYCaC5Aqasbm8vwaG92E/multiaddr-filter"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ps
"github.com/jbenet/go-peerstream"
pst
"github.com/jbenet/go-stream-muxer"
psmss
"github.com/jbenet/go-stream-muxer/multistream"
"github.com/jbenet/goprocess"
goprocessctx
"github.com/jbenet/goprocess/context"
prom
"github.com/prometheus/client_golang/prometheus"
context
"golang.org/x/net/context"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
)
...
...
p2p/net/swarm/swarm_addr_test.go
View file @
0c73722a
...
...
@@ -8,8 +8,8 @@ import (
peer
"github.com/ipfs/go-libp2p/p2p/peer"
testutil
"util/testutil"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
context
"golang.org/x/net/context"
)
func
TestFilterAddrs
(
t
*
testing
.
T
)
{
...
...
p2p/net/swarm/swarm_conn.go
View file @
0c73722a
...
...
@@ -8,9 +8,9 @@ import (
conn
"github.com/ipfs/go-libp2p/p2p/net/conn"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ps
"github.com/jbenet/go-peerstream"
context
"golang.org/x/net/context"
)
// a Conn is a simple wrapper around a ps.Conn that also exposes
...
...
p2p/net/swarm/swarm_dial.go
View file @
0c73722a
...
...
@@ -14,8 +14,8 @@ import (
peer
"github.com/ipfs/go-libp2p/p2p/peer"
lgbl
"util/eventlog/loggables"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
context
"golang.org/x/net/context"
)
// Diagram of dial sync:
...
...
p2p/net/swarm/swarm_listen.go
View file @
0c73722a
...
...
@@ -9,9 +9,9 @@ import (
transport
"github.com/ipfs/go-libp2p/p2p/net/transport"
lgbl
"util/eventlog/loggables"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
ps
"github.com/jbenet/go-peerstream"
context
"golang.org/x/net/context"
)
// Open listeners and reuse-dialers for the given addresses
...
...
p2p/net/swarm/swarm_net.go
View file @
0c73722a
...
...
@@ -8,9 +8,9 @@ import (
metrics
"github.com/ipfs/go-libp2p/p2p/metrics"
inet
"github.com/ipfs/go-libp2p/p2p/net"
"QmSir6qPL1tjuxd8LkR8VZq6v625ExAUVs2eCLeqQuaPGU/goprocess"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
"github.com/jbenet/goprocess"
context
"golang.org/x/net/context"
)
// Network implements the inet.Network interface.
...
...
p2p/net/swarm/swarm_net_test.go
View file @
0c73722a
...
...
@@ -5,7 +5,7 @@ import (
"testing"
"time"
context
"
golang.org/x/ne
t/context"
context
"
QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUc
t/context"
inet
"github.com/ipfs/go-libp2p/p2p/net"
testutil
"github.com/ipfs/go-libp2p/p2p/test/util"
)
...
...
p2p/net/swarm/swarm_notif_test.go
View file @
0c73722a
...
...
@@ -4,8 +4,8 @@ import (
"testing"
"time"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
context
"golang.org/x/net/context"
inet
"github.com/ipfs/go-libp2p/p2p/net"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
...
...
p2p/net/swarm/swarm_test.go
View file @
0c73722a
...
...
@@ -14,8 +14,8 @@ import (
peer
"github.com/ipfs/go-libp2p/p2p/peer"
testutil
"util/testutil"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
context
"golang.org/x/net/context"
)
func
EchoStreamHandler
(
stream
inet
.
Stream
)
{
...
...
p2p/net/transport/tcp.go
View file @
0c73722a
...
...
@@ -7,9 +7,9 @@ import (
"time"
manet
"QmU5s159q8cZuM1f9Vqti4LHu6y8zyVc5dxv2py81sdp6Q/go-multiaddr-net"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
ma
"QmbWxL1aXQhBjc1XGjGF1f2KGBMCBYSuT2ThA8YXnXJK83/go-multiaddr"
reuseport
"github.com/jbenet/go-reuseport"
context
"golang.org/x/net/context"
lgbl
"util/eventlog/loggables"
)
...
...
p2p/peer/queue/queue_test.go
View file @
0c73722a
...
...
@@ -9,7 +9,7 @@ import (
peer
"github.com/ipfs/go-libp2p/p2p/peer"
u
"util"
context
"
golang.org/x/ne
t/context"
context
"
QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUc
t/context"
)
func
TestQueue
(
t
*
testing
.
T
)
{
...
...
p2p/peer/queue/sync.go
View file @
0c73722a
package
queue
import
(
context
"golang.org/x/net/context"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
logging
"QmWRypnfEwrgH4k93KEHN5hng7VjKYkWmzDYRuTZeh2Mgh/go-log"
context
"QmacZi9WygGK7Me8mH53pypyscHzU386aUZXpr28GZgUct/context"
peer
"github.com/ipfs/go-libp2p/p2p/peer"
)
var
log
=
logging
.
Logger
(
"peerqueue"
)
...
...
Prev
1
2
3
4
5
Next
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