Jeromy
4f083d54d6
write a few package doc strings to improve look of godoc
2014-11-08 21:42:36 -08:00
Jeromy
88bf39118c
comment comment comment comment
2014-11-03 03:02:56 +00:00
Jeromy
317ca2f865
benchmark secure channel
2014-11-01 16:07:56 -07:00
Juan Batiz-Benet
70e1f9b6bc
make vendor
...
cc @whyrusleeping
2014-10-30 05:43:14 -07:00
Juan Batiz-Benet
13f00abc27
blockservice: signal add optimization
2014-10-30 02:01:27 -07:00
Juan Batiz-Benet
04eba28a16
blockservice: dont write blocks twice
...
If the datastore has a value for the key, we already have
the block. We should not write it again. This will make redundant
writes much faster.
At the moment, a datastore.Has on leveldb is a GetBackedHas.
Track https://github.com/jbenet/go-datastore/issues/6
2014-10-30 01:54:53 -07:00
Brian Tiger Chow
1f9541d29b
refactor(blockservice) export blockservice.ErrNotFound
2014-10-28 15:27:00 -07:00
Jeromy
d92db12460
lots of logging
2014-10-26 00:45:40 +00:00
Jeromy
e1f2fe75f8
add in dag removal
2014-10-25 12:39:36 -07:00
Jeromy
87407a99b9
add context to blockservice Get
2014-10-25 12:38:32 -07:00
Juan Batiz-Benet
f7c1ed39e0
renamed datastore.go -> go-datastore
2014-10-21 15:10:58 -07:00
Jeromy
5ba2efc2b8
make tests pass
2014-10-08 04:25:51 +00:00
Jeromy
bdaee9bcb2
some performance tweaks for the dagwriter write path
2014-10-08 03:42:29 +00:00
Jeromy
3591e10b2e
implement dagmodifier and tests.
2014-10-06 23:49:45 +00:00
Juan Batiz-Benet
77fccaa2f3
Obviated need for .ID.Pretty() all over the place.
2014-10-06 04:23:55 -07:00
Juan Batiz-Benet
f3ae0e8e1b
u.Hash - error
...
the u.Hash error can be safely ignored (panic) because multihash
only fails from the selection of hash function. If the fn + length
are valid, it won't error.
cc @whyrusleeping
2014-10-06 02:26:52 -07:00
Juan Batiz-Benet
0c8ae7674e
loggers: set level
2014-10-04 03:53:21 -07:00
Juan Batiz-Benet
7e1cd59259
initialize loggers at ERROR
2014-10-04 03:36:30 -07:00
Juan Batiz-Benet
612be59643
use string datastore keys.
2014-10-03 15:39:22 -07:00
Juan Batiz-Benet
f085d594aa
vendoring ipns things
2014-10-01 00:44:22 -07:00
Jeromy
54142b2173
update logging in multiple packages
2014-10-01 00:41:30 -07:00
Juan Batiz-Benet
370d2593dc
this warning should only print out on debug
...
(perhaps should be logged instead)
2014-09-22 04:06:17 -07:00
Brian Tiger Chow
e907b2e03c
feat(exchange) pass ctx to exchange.HasBlock(...)
2014-09-22 04:06:14 -07:00
Brian Tiger Chow
42770cc39a
refac(exchange) replace timeout -> context in API
2014-09-22 04:06:14 -07:00
Brian Tiger Chow
e1fe4f6d60
refac(exchange) rename exchange.Interface to match golang conventions
...
examples:
http://golang.org/pkg/container/heap/#Interface
http://golang.org/pkg/net/#Interface
http://golang.org/pkg/sort/#Interface
2014-09-22 04:06:13 -07:00
Brian Tiger Chow
fd086b9c48
refac(exchange) bitswap -> exchange/bitswap
...
Move go-ipfs/bitswap package to go-ipfs/exchange/bitswap
* Delineates the difference between the generic exchange interface and
implementations (eg. BitSwap protocol)
Thus, the bitswap protocol can be refined without having to overthink
how future exchanges will work. Aspects common to BitSwap and other
exchanges can be extracted out to the exchange package in piecemeal.
Future exchange implementations can be placed in sibling packages next
to exchange/bitswap. (eg. exchange/multilateral)
2014-09-22 04:06:13 -07:00
Brian Tiger Chow
0ab86de407
refac(bitswap:exch) HasBlock(ptr) -> HasBlock(val)
2014-09-22 04:05:18 -07:00
Brian Tiger Chow
ad14d6c561
refac(bitswap:interface) GetBlock, HaveBlock -> Block, HasBlock
2014-09-22 04:05:17 -07:00
Brian Tiger Chow
5426a1b512
refactor(blockservice) use bitswap.Exchange interface
2014-09-22 04:05:16 -07:00
Brian Tiger Chow
dde6ad495e
todo(blockservice, core) add notes
...
* to wrap datastore for ease of use
* to pass a non-responsive bitswap mock rather than performing nil
* checks internally
2014-09-22 04:05:16 -07:00
Brian Tiger Chow
7968b45e58
vendor dependencies with godep
...
dependencies are vendored into Godeps/_workspace and commit versions are
recorded in Godeps.json
update datastore to e89f0511
update go.crypto
2014-09-09 22:39:42 -07:00
Jeromy
eeab5f9bd9
fix issue with blocks not actually being stored via dagservice
2014-09-04 03:37:29 +00:00
Jeromy
691d1b36bb
integrate bitswap and blockservice into the core package
2014-08-29 11:34:50 -07:00
Jeromy
fcff5a5c96
rework bitswap to reflect discussion on PR #32
2014-08-28 16:48:00 -07:00
Jeromy
af2f04ae89
fixing up some bitswap stuff after the PR
2014-08-28 12:01:03 -07:00
Jeromy
cfdf01d58a
bitswap first working commit!
2014-08-26 14:24:51 -07:00
Jeromy
678db4fa40
more work on bitswap and other code cleanup
2014-08-25 09:44:42 -07:00
Jeromy
91e4675cbf
basic implementation of bitswap, needs testing/verification that it works
2014-08-24 18:13:05 -07:00