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
dms3
go-bitswap
Commits
290fff92
Commit
290fff92
authored
Apr 01, 2017
by
Jan Winkelmann
Committed by
keks
Nov 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: use go-ipfs-cmds
License: MIT Signed-off-by:
keks
<
keks@cryptoscope.co
>
parent
44e13806
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
7 deletions
+16
-7
bitswap_test.go
bitswap_test.go
+3
-3
decision/engine_test.go
decision/engine_test.go
+1
-1
message/message_test.go
message/message_test.go
+2
-2
message/pb/Makefile
message/pb/Makefile
+8
-0
testnet/network_test.go
testnet/network_test.go
+1
-1
testnet/peernet.go
testnet/peernet.go
+1
-0
No files found.
bitswap_test.go
View file @
290fff92
...
@@ -14,14 +14,14 @@ import (
...
@@ -14,14 +14,14 @@ import (
tn
"github.com/ipfs/go-ipfs/exchange/bitswap/testnet"
tn
"github.com/ipfs/go-ipfs/exchange/bitswap/testnet"
mockrouting
"github.com/ipfs/go-ipfs/routing/mock"
mockrouting
"github.com/ipfs/go-ipfs/routing/mock"
delay
"github.com/ipfs/go-ipfs/thirdparty/delay"
delay
"github.com/ipfs/go-ipfs/thirdparty/delay"
blocks
"gx/ipfs/QmSn9Td7xgxm9EV7iEjTckpUWmWApggzPxu7eFGWkkpwin/go-block-format"
travis
"gx/ipfs/QmWRCn8vruNAzHx8i6SAXinuheRitKEGu8c7m26stKvsYx/go-testutil/ci/travis"
detectrace
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-detect-race"
detectrace
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-detect-race"
cid
"gx/ipfs/QmNp85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ/go-cid"
cid
"gx/ipfs/QmNp85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ/go-cid"
p2ptestutil
"gx/ipfs/QmQGX417WoxKxDJeHqouMEmmH4G1RCENNSzkZYHrXy3Xb3/go-libp2p-netutil"
tu
"gx/ipfs/QmWRCn8vruNAzHx8i6SAXinuheRitKEGu8c7m26stKvsYx/go-testutil"
tu
"gx/ipfs/QmWRCn8vruNAzHx8i6SAXinuheRitKEGu8c7m26stKvsYx/go-testutil"
travis
"gx/ipfs/QmWRCn8vruNAzHx8i6SAXinuheRitKEGu8c7m26stKvsYx/go-testutil/ci/travis"
blocks
"gx/ipfs/QmSn9Td7xgxm9EV7iEjTckpUWmWApggzPxu7eFGWkkpwin/go-block-format"
p2ptestutil
"gx/ipfs/QmQGX417WoxKxDJeHqouMEmmH4G1RCENNSzkZYHrXy3Xb3/go-libp2p-netutil"
)
)
// FIXME the tests are really sensitive to the network delay. fix them to work
// FIXME the tests are really sensitive to the network delay. fix them to work
...
...
decision/engine_test.go
View file @
290fff92
package
decision
package
decision
import
(
import
(
"context"
"errors"
"errors"
"fmt"
"fmt"
"math"
"math"
...
@@ -8,7 +9,6 @@ import (
...
@@ -8,7 +9,6 @@ import (
"sync"
"sync"
"testing"
"testing"
context
"context"
blockstore
"github.com/ipfs/go-ipfs/blocks/blockstore"
blockstore
"github.com/ipfs/go-ipfs/blocks/blockstore"
message
"github.com/ipfs/go-ipfs/exchange/bitswap/message"
message
"github.com/ipfs/go-ipfs/exchange/bitswap/message"
blocks
"gx/ipfs/QmSn9Td7xgxm9EV7iEjTckpUWmWApggzPxu7eFGWkkpwin/go-block-format"
blocks
"gx/ipfs/QmSn9Td7xgxm9EV7iEjTckpUWmWApggzPxu7eFGWkkpwin/go-block-format"
...
...
message/message_test.go
View file @
290fff92
...
@@ -4,12 +4,12 @@ import (
...
@@ -4,12 +4,12 @@ import (
"bytes"
"bytes"
"testing"
"testing"
proto
"gx/ipfs/QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV/gogo-protobuf/proto"
pb
"github.com/ipfs/go-ipfs/exchange/bitswap/message/pb"
pb
"github.com/ipfs/go-ipfs/exchange/bitswap/message/pb"
cid
"gx/ipfs/QmNp85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ/go-cid"
cid
"gx/ipfs/QmNp85zy9RLrQ5oQD4hPyS39ezrrXpcaa7R4Y9kxdWQLLQ/go-cid"
u
"gx/ipfs/QmSU6eubNdhXjFBJBSksTp8kv8YRub8mGAPv8tVJHmL2EU/go-ipfs-util"
u
"gx/ipfs/QmSU6eubNdhXjFBJBSksTp8kv8YRub8mGAPv8tVJHmL2EU/go-ipfs-util"
blocks
"gx/ipfs/QmSn9Td7xgxm9EV7iEjTckpUWmWApggzPxu7eFGWkkpwin/go-block-format"
blocks
"gx/ipfs/QmSn9Td7xgxm9EV7iEjTckpUWmWApggzPxu7eFGWkkpwin/go-block-format"
proto
"gx/ipfs/QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV/gogo-protobuf/proto"
)
)
func
mkFakeCid
(
s
string
)
*
cid
.
Cid
{
func
mkFakeCid
(
s
string
)
*
cid
.
Cid
{
...
...
message/pb/Makefile
0 → 100644
View file @
290fff92
# TODO(brian): add proto tasks
all
:
message.pb.go
message.pb.go
:
message.proto
protoc
--gogo_out
=
.
--proto_path
=
../../../../../:/usr/local/opt/protobuf/include:.
$<
clean
:
rm
message.pb.go
testnet/network_test.go
View file @
290fff92
package
bitswap
package
bitswap
import
(
import
(
"context"
"sync"
"sync"
"testing"
"testing"
context
"context"
bsmsg
"github.com/ipfs/go-ipfs/exchange/bitswap/message"
bsmsg
"github.com/ipfs/go-ipfs/exchange/bitswap/message"
bsnet
"github.com/ipfs/go-ipfs/exchange/bitswap/network"
bsnet
"github.com/ipfs/go-ipfs/exchange/bitswap/network"
mockrouting
"github.com/ipfs/go-ipfs/routing/mock"
mockrouting
"github.com/ipfs/go-ipfs/routing/mock"
...
...
testnet/peernet.go
View file @
290fff92
...
@@ -2,6 +2,7 @@ package bitswap
...
@@ -2,6 +2,7 @@ package bitswap
import
(
import
(
"context"
"context"
bsnet
"github.com/ipfs/go-ipfs/exchange/bitswap/network"
bsnet
"github.com/ipfs/go-ipfs/exchange/bitswap/network"
mockrouting
"github.com/ipfs/go-ipfs/routing/mock"
mockrouting
"github.com/ipfs/go-ipfs/routing/mock"
ds
"gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore"
ds
"gx/ipfs/QmVSase1JP7cq9QkPT46oNwdp9pT6kBkG3oqS14y3QcZjG/go-datastore"
...
...
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