Tommi Virtanen
63c25285b2
Dead code cleanup: remove AllKeys from blockstore
...
Nothing uses it.
2015-03-11 21:46:57 -07:00
Tommi Virtanen
1a48e6a91f
Dead code cleanup: remove Range support from blockstore
...
Nothing uses it, and offset+limit is a bad query mechanism for
mutating data.
2015-03-11 21:46:57 -07:00
Henry
92d08db7a5
rewrote import paths of go.net/context to use golang.org/x/context
...
- updated go-ctxgroup and goprocess
ctxgroup: AddChildGroup was changed to AddChild. Used in two files:
- p2p/net/mock/mock_net.go
- routing/dht/dht.go
- updated context from hg repo to git
prev. commit in hg was ad01a6fcc8a19d3a4478c836895ffe883bd2ceab. (context: make parentCancelCtx iterative)
represents commit 84f8955a887232b6308d79c68b8db44f64df455c in git repo
- updated context to master (b6fdb7d8a4ccefede406f8fe0f017fb58265054c)
Aaron Jacobs (2):
net/context: Don't accept a context in the DoSomethingSlow example.
context: Be clear that users must cancel the result of WithCancel.
Andrew Gerrand (1):
go.net: use golang.org/x/... import paths
Bryan C. Mills (1):
net/context: Don't leak goroutines in Done example.
Damien Neil (1):
context: fix removal of cancelled timer contexts from parent
David Symonds (2):
context: Fix WithValue example code.
net: add import comments.
Sameer Ajmani (1):
context: fix TestAllocs to account for ints in interfaces
2015-02-25 11:58:19 +01:00
Jeromy
d7eb57f48f
add worker to bitswap for reproviding new blocks
2015-02-19 20:07:02 -08:00
Juan Batiz-Benet
58f39687cf
logs: removed all log.Errors unhelpful to users
...
Let's save log.Error for things the user can take action on.
Moved all our diagnostics to log.Debug. We can ideally reduce them
even further.
2015-02-03 01:06:07 -08:00
Brian Tiger Chow
be41444a9e
provide simple wrapper methods for AllKeysRange
...
@jbenet @whyrusleeping
was the 1<<16 intentional? replaced the raw methods with wrappers.
2015-01-24 01:32:28 -08:00
Juan Batiz-Benet
0b9bef1ea9
blockstore: fixed data race
2015-01-20 09:28:14 -08:00
Brian Tiger Chow
884143bf9c
move generic packages to thirdparty (see thirdparty/README.md)
2015-01-18 14:04:45 -08:00
Juan Batiz-Benet
6a8414bcfb
blockstore Allkeys: ignore non multihash keys
2015-01-11 21:19:47 -08:00
Juan Batiz-Benet
0d059a3881
change block datastore prefix to "/b"
...
the prefix should be as short as possible, as this is a
per-block overhead.
2015-01-11 20:52:34 -08:00
Juan Batiz-Benet
374a75b612
refs: tie the contexts together
2015-01-11 20:52:33 -08:00
Juan Batiz-Benet
92e8a7bcd5
updated datastore for proper query handling
...
Queries now can be cancelled and the resources collected
2015-01-11 20:52:33 -08:00
Juan Batiz-Benet
da976a5f21
blocks: AllKeys + tests
2015-01-11 16:59:22 -08:00
Juan Batiz-Benet
f9ca67ef04
updated datastore (Query)
2015-01-11 16:59:22 -08:00
Jeromy
50aa37fec4
blockstore.ErrNotFound, and proper wantlist sorting
2014-12-17 23:44:40 -08:00
Brian Tiger Chow
866ef7287b
misc(blockstore) comment
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-13 05:17:16 -08:00
Brian Tiger Chow
d77c4bb5e0
refactor(peer): create peer through peerstore
...
for safety!
use mockpeer.WithID methods to create peers in tests
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 02:10:42 -08:00
Juan Batiz-Benet
1192be196b
blockstore: Put checks Has first.
2014-12-06 16:22:11 -08:00
Brian Tiger Chow
c40fe2af17
feat(blockstore) write cache
...
vendors hashicorp/golang-lru dependency. (Mozilla Public License, version 2.0)
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 23:31:01 -08:00
Brian Tiger Chow
7a3819a528
refactor(util) move block generator
...
@whyrusleeping @jbenet
Putting the block generator in a util dir until blocks.
Can't put it in util/testutil because the util/testutil/dag-generator
imports blockservice and blockservice uses the generator.
Tough problem. This'll do for now.
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:31 +00:00
Brian Tiger Chow
d0304def6b
refactor(blockstore, blockservice) use Blockstore and offline.Exchange
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:24 +00:00
Brian Tiger Chow
918c8e274e
refactor(blockstore) mv under blocks/
...
@jbenet @whyrusleeping
the pyramids were built one brick at a time
addresses: https://github.com/jbenet/go-ipfs/issues/370
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:23 +00:00
Jeromy
4f083d54d6
write a few package doc strings to improve look of godoc
2014-11-08 21:42:36 -08:00
Jeromy
c3d04570c0
a few more comments
2014-11-03 03:53:16 +00:00
Jeromy
950957240a
address comments from PR
2014-11-01 16:07:56 -07:00
Jeromy
d92db12460
lots of logging
2014-10-26 00:45:40 +00:00
Juan Batiz-Benet
184c25430b
go-vet friendly codebase
...
- distinguish log.Error and log.Errorf functions
- Initialize structs with field names
- A bit of unreachable code (defers)
2014-10-25 03:46:39 -07:00
Juan Batiz-Benet
4b01ad0b7c
fixed pin json marshal
2014-10-22 02:55:22 -07:00
Jeromy
edb5a14f79
update datastore paths
2014-10-22 00:33:14 -07:00
Jeromy
6458ddcd32
flesh out pinning object, needs tests and cli wiring still
2014-10-22 00:28:41 -07:00
Jeromy
4d63820bbe
move indirect pinning to its own structure
2014-10-22 00:26:11 -07:00
Jeromy
51879e9640
implement unpin and add a datastore backed blockset
2014-10-22 00:26:11 -07:00
Jeromy
7cbfbbc0ad
add blockset and bloomfilter and beginnings of pinning service
2014-10-22 00:26:11 -07:00
Jeromy
6e0cfb3273
removed error from return type of blocks.NewBlock()
2014-10-07 20:46:01 +00: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
Jeromy
782976f473
add basic test for blocks package #59 (actually add file)
2014-09-15 06:08:49 +00:00
Jeromy
8a21af092a
add basic test for blocks package #59
2014-09-15 06:07:03 +00: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
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
Juan Batiz-Benet
f718bd6a92
go lint
...
link errors left:
- protocol buffers output is not lint-friendly
2014-07-22 02:20:08 -07:00
Juan Batiz-Benet
015398846f
block get returned.
2014-07-05 15:38:17 -07:00
Juan Batiz-Benet
a5241b767b
block service
2014-07-05 15:32:08 -07:00
Juan Batiz-Benet
3b570d3f82
skeleton.
2014-06-26 01:14:26 -07:00