@cryptotaxi247 / kubo / commits / 0ec0a6ab8

fix inflection

Brian Tiger Chow committed Jan 20, 2015 at 02:58 UTC 0ec0a6ab87a009317517ed11d7de98a5d6a24192
1 file changed +2 -1
exchange/bitswap/bitswap.go
+2 -1
@@ -8,6 +8,7 @@ import (
8 "time"
9
10 context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
11 + inflect "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/briantigerchow/inflect"
12
13 blocks "github.com/jbenet/go-ipfs/blocks"
14 blockstore "github.com/jbenet/go-ipfs/blocks/blockstore"
@@ -265,7 +266,7 @@ func (bs *bitswap) clientWorker(parent context.Context) {
266 case <-time.Tick(10 * time.Second):
267 n := bs.wantlist.Len()
268 if n > 0 {
268 - log.Debugf("%d keys in bitswap wantlist...", n)
269 + log.Debug(n, inflect.FromNumber("keys", n), "in bitswap wantlist")
270 }
271 case <-broadcastSignal: // resend unfulfilled wantlist keys
272 entries := bs.wantlist.Entries()