1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-29 09:34:03 +08:00

1089 Commits

Author SHA1 Message Date
06a8feeaf3 feat(docker) build a daemon
The default Docker build creates a daemon.

TODO allow bootstrap node to be overridden at runtime (perhaps with an
environment variable), so we can use custom topologies in test
environments. NB: We still want the default behavior to connect to Mars.

TODO create a docker image that mounts and uses shared volume to make
that mount accessible on the host.
2014-11-01 17:32:49 -07:00
c7ef55a450 move OSX specific calls to build tagged files 2014-10-31 19:46:42 +00:00
ca1bf26744 check osxfuse version. Fixes #202. 2014-10-31 10:10:12 -07:00
b02dbc4a6b Add testutil package and function to generate a dagservice 2014-10-31 06:02:52 +00:00
e9779b1c7f address comments from PR 2014-10-31 05:57:47 +00:00
ae339a0320 remove dagwriter in favor of new importer function 2014-10-31 05:03:42 +00:00
01a583ea7f Merge pull request #241 from jbenet/fix/log-debugf
fix(everything) log.Debug -> log.Debugf
2014-10-30 17:09:26 -07:00
3270ab0efb fix bug where terminal would randomly become garbled binary crap 2014-10-30 16:34:52 +00:00
cea398b8a7 fix(all) log.Debug -> log.Debugf 2014-10-30 06:35:29 -07:00
b5fc3caea3 cmd/add: output file hash Fixed #239 2014-10-30 06:15:23 -07:00
70e1f9b6bc make vendor
cc @whyrusleeping
2014-10-30 05:43:14 -07:00
334cc4b7a1 Merge pull request #240 from jbenet/perf/no-snappy-compression
perf(core/datastore) disable snappy compression
2014-10-30 05:10:11 -07:00
3430a4d80a remove comment 2014-10-30 05:08:03 -07:00
f62cedf4d7 rm comments 2014-10-30 05:07:07 -07:00
ff490a6d52 perf(core/datastore) disable snappy compression 2014-10-30 04:58:25 -07:00
461e5a3c2c Merge pull request #237 from jbenet/dont-write-twice
blockservice: dont write blocks twice
2014-10-30 04:44:18 -07:00
483ccf9f5f better test exercises saved buf 2014-10-30 04:33:13 -07:00
adec8dac12 util: cleaner ByteChanReader.Read 2014-10-30 04:14:37 -07:00
cb22b62a9b util: remove broken rand 2014-10-30 04:14:05 -07:00
37ce1863c0 test splitting is deterministic. (it is) 2014-10-30 02:49:42 -07:00
13f00abc27 blockservice: signal add optimization 2014-10-30 02:01:27 -07:00
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
f0d823c2db fix tests (circular import) 2014-10-30 01:17:26 -07:00
71ac117546 Address concerns in PR 2014-10-30 06:23:31 +00:00
18ada93ec3 rewrite add command to use dagwriter, moved a pinner into the dagwriter for inline pinning 2014-10-30 04:40:48 +00:00
a29b9d3353 Merge pull request #235 from jbenet/feat/mprof-in-cli-ipfs1-debug
perf(cmd/ipfs) write mprof file in debug mode
2014-10-29 18:27:42 -07:00
7510ef2081 feat(cmd/ipfs1) add mem profiling in debug mode
TODO add memory profiling to ipfs2
2014-10-29 18:24:32 -07:00
1e847059bc style(cmd/ipfs/pprof) move defer close to initialization 2014-10-29 18:24:32 -07:00
79866d3378 hotfix(core) assign node.Resolver = path.Resolver
discovered by @mappum and applied at 414e20b71e

fixing here to address #233

https://github.com/jbenet/go-ipfs/issues/233
2014-10-29 06:58:35 -07:00
3a0bbe2aa8 Merge pull request #224 from jbenet/issue-209-plus
refactor(blockservice, merkledag, namesys) deprecate u.ErrNotFound
2014-10-28 16:11:52 -07:00
9a9dc926b5 fix(merkledag) return static error 2014-10-28 16:10:17 -07:00
edbaa3f664 fix(namesys) use the error that already exists 2014-10-28 15:41:49 -07:00
0bfadea036 fix(namesys, merkledag) use static error 2014-10-28 15:40:26 -07:00
c534daef86 refactor(namesys) use one-off error 2014-10-28 15:27:00 -07:00
04e270a91e refactor(merkledag) use one-off error 2014-10-28 15:27:00 -07:00
1f9541d29b refactor(blockservice) export blockservice.ErrNotFound 2014-10-28 15:27:00 -07:00
cee1e9ccda Merge pull request #223 from jbenet/issue-209
refactor(routing) replace u.ErrNotFound with routing.ErrNotFound
2014-10-28 15:25:49 -07:00
cb3a8bfc96 Merge pull request #216 from jbenet/fix/bsmsg-duplicates
fix(bitswap/message) duplicate entries
2014-10-28 15:21:38 -07:00
e0f4000fcf style(routing) message 2014-10-28 05:12:54 -07:00
321eb421e7 refactor(routing) use routing.ErrNotFound 2014-10-28 02:17:46 -07:00
f75f4a4b6d feat(routing) define routing.ErrNotFound 2014-10-28 01:06:28 -07:00
42dfc50250 docs(bitswap/message) BitSwapMessage interface 2014-10-27 22:43:54 -07:00
edf99f5e20 fix(bitswap) preserve ordering in bitswap message 2014-10-27 22:43:54 -07:00
91a31a3e7d test(bitswap/message) no duplicates 2014-10-27 21:58:21 -07:00
cebeff43b9 style(bitswap/message) rename method -> AddBlock
to emphasize idempotence
2014-10-27 21:58:21 -07:00
caedb64697 fix(bitswap/message) impl with map to ensure no duplicate blocks
comes at the cost of O(n) Blocks() method.
2014-10-27 21:58:21 -07:00
2c4fefb9d6 style(bitswap/message) rename struct
so there's one less name to think about
2014-10-27 21:58:20 -07:00
f94d6a37b6 refactor(bitswap/message) use map to prevent duplicate entries
A nice invariant for bitswap sessions:

        Senders and receivers can trust that messages do not contain
        duplicate blocks or duplicate keys. Backing the message with a
        map enforces this invariant.

        This comes at the cost of O(n) getters.
2014-10-27 21:58:20 -07:00
842b910853 style(bitswap/message) rename AppendWanted -> AddWanted
implementation will be patched to ensure bitswap messages cannot contain
duplicate blocks or keys
2014-10-27 21:58:20 -07:00
8193049dda fix(bitswap) duplicate key in wantlist
@whyrusleeping noticed this a couple days ago

potential long-term fix: prevent duplicate entries in the wantlist by
using a map/set and iterating over this data structure on export
2014-10-27 21:58:20 -07:00