-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from jbenet/travis-ci
travis ci
- Loading branch information
Showing
4 changed files
with
17 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
language: go | ||
|
||
go: | ||
- 1.2 | ||
- 1.3 | ||
- release | ||
- tip | ||
|
||
script: | ||
- go test -v ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,24 @@ | ||
package bitswap | ||
|
||
import ( | ||
"github.com/jbenet/go-ipfs/blocks" | ||
mh "github.com/jbenet/go-multihash" | ||
|
||
"time" | ||
"time" | ||
mh "github.com/jbenet/go-multihash" | ||
blocks "github.com/jbenet/go-ipfs/blocks" | ||
u "github.com/jbenet/go-ipfs/util" | ||
) | ||
|
||
// aliases | ||
|
||
type Ledger struct { | ||
Owner mh.Multihash | ||
|
||
Partner mh.Multihash | ||
|
||
BytesSent uint64 | ||
|
||
BytesRecv uint64 | ||
|
||
Timestamp *time.Time | ||
} | ||
|
||
type BitSwap struct { | ||
Ledgers map[string]*Ledger | ||
HaveList map[string]*blocks.Block | ||
WantList []*multihash.Multihash | ||
Ledgers map[u.Key]*Ledger // key is peer.ID | ||
HaveList map[u.Key]*blocks.Block // key is multihash | ||
WantList []*mh.Multihash | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.