1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-30 16:01:06 +08:00

refactor(unixfs) move proto to pb package

not internal since io needs it

fix(fuse/ipns) use pb package

fix(fuse) import protos from unixfs/pb package
This commit is contained in:
Brian Tiger Chow
2014-10-22 04:57:15 -07:00
parent 1d08e1d7c2
commit 75a860ca2b
9 changed files with 43 additions and 38 deletions

View File

@ -3,7 +3,8 @@ package unixfs
import (
"testing"
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/goprotobuf/proto"
proto "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/goprotobuf/proto"
pb "github.com/jbenet/go-ipfs/unixfs/pb"
)
func TestMultiBlock(t *testing.T) {
@ -19,7 +20,7 @@ func TestMultiBlock(t *testing.T) {
t.Fatal(err)
}
pbn := new(PBData)
pbn := new(pb.PBData)
err = proto.Unmarshal(b, pbn)
if err != nil {
t.Fatal(err)