1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-10 05:52:20 +08:00

address concerns about user interface with new Path type

This commit is contained in:
Jeromy
2015-01-30 19:55:38 +00:00
parent 1c891dbdc1
commit 9ddfafb40a
5 changed files with 27 additions and 12 deletions

View File

@ -15,7 +15,6 @@ import (
coreunix "github.com/jbenet/go-ipfs/core/coreunix"
mocknet "github.com/jbenet/go-ipfs/p2p/net/mock"
"github.com/jbenet/go-ipfs/p2p/peer"
path "github.com/jbenet/go-ipfs/path"
"github.com/jbenet/go-ipfs/thirdparty/unit"
errors "github.com/jbenet/go-ipfs/util/debugerror"
testutil "github.com/jbenet/go-ipfs/util/testutil"
@ -126,12 +125,12 @@ func DirectAddCat(data []byte, conf testutil.LatencyConfig) error {
return err
}
keyAdded, err := coreunix.Add(adder, bytes.NewReader(data))
added, err := coreunix.Add(adder, bytes.NewReader(data))
if err != nil {
return err
}
readerCatted, err := coreunix.Cat(catter, path.Path(keyAdded.String()))
readerCatted, err := coreunix.Cat(catter, added)
if err != nil {
return err
}