Jeromy
8f0623255d
replace imports with absolute path instead of using symlink
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-03 14:30:50 -07:00
Jeromy
63f72a5155
remove context from HasBlock, use bitswap process instead
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-15 17:53:42 -07:00
Jeromy
47b85c7bc3
dont need blockservice workers anymore
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-15 17:53:26 -07:00
Jeromy
e5a2896c0e
extract logging
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-14 17:35:50 -07:00
Jeromy
b3aee2872f
move mem-dag construction to its own function, and actually call WriteOutputTo
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-05 04:56:55 +02:00
Jeromy
4d8eddcebc
fix blockservice error ignorance
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-04 15:41:15 -07:00
Jeromy
f209763357
blockservice.New doesnt need to return an error
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-08-14 16:25:51 -07:00
Jeromy
137c0ac4ac
use batching transaction interface from datastore
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-09 16:37:30 -07:00
Jeromy
ef294431d4
move util.Key into its own package under blocks
2015-06-01 16:10:08 -07:00
Ho-Sheng Hsiao
bf22aeec0a
Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs
...
- Modified Godeps/Godeps.json by hand
- [TEST] Updated welcome docs hash to sharness
- [TEST] Updated contact doc
- [TEST] disabled breaking test (t0080-repo refs local)
2015-03-31 12:52:25 -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
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
721ff57263
fix(blockservice) fully async exchange.HasBlock
2015-01-20 23:43:21 -08:00
Juan Batiz-Benet
238035c298
blockservice: async HasBlock with ratelimit
2015-01-06 08:54:04 -08:00
Juan Batiz-Benet
e5e1942638
blockstore: suppress exchange error
2015-01-02 08:36:36 -08:00
Brian Tiger Chow
e3f8f8cca1
rm low SnR debug statement
...
"Get" is still fairly useful. Leaving it there.
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-23 08:57:25 -08:00
Jeromy
50aa37fec4
blockstore.ErrNotFound, and proper wantlist sorting
2014-12-17 23:44:40 -08:00
Brian Tiger Chow
ee961edef5
rm redundant Has
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-06 16:24:39 -08:00
Brian Tiger Chow
43ff3c5040
style(blockservice) s/Remote/Exchange
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 23:31:01 -08:00
Brian Tiger Chow
e27de2bfa2
fix(blockservice) respect context in GetBlocks
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:53:30 +00:00
Jeromy
50b00eb90f
use @maybebtc's ForwardBlocks function
2014-12-05 20:53:27 +00:00
Jeromy
9120d107c3
a little more correctness on the new bitswap impl
2014-12-05 20:53:27 +00:00
Jeromy
ed4509923c
tracking down a bug dhthell found, added asserts and better logging.
2014-12-05 20:53:26 +00:00
Jeromy
15d4f82945
some cleanup, and fix minor bug in dagreader from previous commit
2014-12-05 20:53:26 +00:00
Jeromy
d53deebada
wire GetBlocks into blockservice
2014-12-05 20:53:26 +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
Jeromy
99ae432021
start working getBlocks up the call chain
2014-12-05 20:53:23 +00:00
Jeromy
0abc72c062
move some variables into strategy
2014-12-05 20:53:21 +00:00
Jeromy
5be35a83f1
beginnings of a bitswap refactor
2014-12-05 20:53:18 +00:00
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
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
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
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