Skip to content

Commit

Permalink
Merge pull request #18 from jbenet/travis-ci
Browse files Browse the repository at this point in the history
travis ci
  • Loading branch information
jbenet committed Jul 30, 2014
2 parents a933154 + 7a28323 commit 9182008
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 153 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
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 ./...
18 changes: 7 additions & 11 deletions bitswap/bitswap.go
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
}
96 changes: 0 additions & 96 deletions netmux/interface.go

This file was deleted.

46 changes: 0 additions & 46 deletions netmux/netmux.go

This file was deleted.

0 comments on commit 9182008

Please sign in to comment.