Commit Graph

2752 Commits

Author SHA1 Message Date
Overbool
b4b6fc6906 cmds/filestore: use PostRun in verify
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-06 12:56:15 -08:00
Overbool
c43658621d commands/filestore: print StatusOtherError error
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-06 12:56:15 -08:00
Overbool
2462bf913a commands/filestore: use res.Emit directly
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-06 12:56:15 -08:00
Overbool
013de54d98 commands/filestore: fix gofmt
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-06 12:56:15 -08:00
Overbool
dfde39151f commands/filestore: use new cmds lib
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-06 12:56:15 -08:00
Overbool
73fef489f5 commands/bitswap: use cmds.EmitOnce in single value
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-05 15:55:04 -08:00
Overbool
c5b44ded40 commands/bitswap: use new cmds lib
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-05 15:55:04 -08:00
Steven Allen
254dda2823
Merge pull request #5677 from chenminjian/refact/cmd/repo
refact(cmd/repo): repo's sub cmds uses new cmd lib
2018-11-05 08:42:49 -08:00
chenminjian
ff27f9f112 refact(cmd/repo): normalize fsck cmd name
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-11-03 17:12:49 +08:00
chenminjian
5afa7ebfdc refact(cmd/repo): repo verify uses new cmd lib
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-11-03 17:12:32 +08:00
chenminjian
f7b6ee3c87 refact(cmd/repo): repo fsck and repo version uses new cmd lib
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-11-03 17:04:44 +08:00
Steven Allen
5c5b03ea31 Revert "Merge pull request #5708 from ipfs/fix/log-ndjson"
This reverts commit f0bf99361e, reversing
changes made to d5c8fa50c8.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-02 21:17:22 -07:00
Steven Allen
0d80fc54c3 gx: update go-log and sha256
fixes #5709

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-02 21:17:20 -07:00
chenminjian
17e7892036 enhance(cmd/verify): add goroutine count to improve verify speed
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-11-02 13:30:12 -07:00
Steven Allen
ec9fac7379 gx: update go-ipld-cbor
(might as well do this at the same time)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-02 13:17:44 -07:00
hannahhoward
943a5de974 Update go-mfs and go-unixfs
So we can get go-unixfs v1.2.0

License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
2018-11-02 13:16:56 -07:00
Steven Allen
f659eec3d9
Merge pull request #5719 from chenminjian/fix/cmd/version
fix(flag/version): flag `all` should have a higher priority
2018-11-02 13:13:02 -07:00
Overbool
488db7d2f2 commands/p2p: use cmds.EmitOnce in single value
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 12:06:26 -07:00
Overbool
7292c1da23 commands/p2p: use new cmds lib
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 12:06:26 -07:00
Overbool
4a2c3cb3cf commands/dht: use res.Emit directly
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 11:14:14 -07:00
Overbool
7e7a04e21f commands/dht: use new cmds lib
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 11:14:14 -07:00
Overbool
e1d1f68f08 commands/object: use cmds.EmitOnce in single value
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 11:06:32 -07:00
Overbool
0fe7bdfce9 commands/object: add comment
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 11:06:32 -07:00
Overbool
df58a2d617 commands/object: fix object diff option error
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 11:06:32 -07:00
Overbool
677c953dc4 commands/object: use new cmds
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 11:06:32 -07:00
Overbool
f37553f065 commands/files: use cmds.EmitOnce in single value
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 09:46:14 -07:00
Overbool
546d3bed5a commands/files: can't get flush option
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 09:46:14 -07:00
Overbool
efa280c531 commands/files: use MakeTypedEncoder
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 09:46:14 -07:00
Overbool
b80589f98e commands/files: use new cmds
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 09:46:14 -07:00
chenminjian
6f219e0d8f fix(flag/version): flag all should have a higher priority
License: MIT
Signed-off-by: chenminjian <727180553@qq.com>
2018-11-02 19:30:09 +08:00
Overbool
bf15999c02 cmds/env: add a config path helper
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-11-02 10:10:28 +08:00
Steven Allen
0d56a486c0
Merge pull request #5706 from ipfs/fix/4132
fix prometheus concurrent map write bug
2018-10-31 08:00:57 -07:00
Steven Allen
bf69017e25 metrics: we're now recording latency seconds, not microseconds
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-31 05:12:35 -07:00
Steven Allen
16d70eac32 add a todo to remember to remove log reformatting
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-31 04:53:57 -07:00
Steven Allen
68ac5170f1 re-format log output as ndjson
Apparently, js-ipfs-api expects this. Really, I'm not sure why js-ipfs-api even
cares about this endpoint but that's a different issue.

The real fix is to change back to ndjson in go-log but that would force us to
update every package (not good when we're trying to push out a release like
this).

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 17:26:49 -07:00
Steven Allen
4674f19913 fix prometheus concurrent map write bug
fixes #4132

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 15:38:49 -07:00
Steven Allen
d5c8fa50c8
Merge pull request #5705 from ipfs/fix/resolve-non-terminal
error on resolving non-terminal paths
2018-10-30 13:13:34 -07:00
Steven Allen
126d996f60 resolve: restore error message
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 13:02:55 -07:00
Steven Allen
37f33812ae error on resolving non-terminal paths
This isn't the *correct* fix but it (mostly) restores the previous behavior.

Note 1: It *also* fixes resolution of `/ipld` paths by avoiding `path.FromCid`.
Note 2: This does not preserve the error. That was a DagCBOR specific error that
has nothing to do with the issue.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 12:34:32 -07:00
Steven Allen
d98351720a fix expected error message in gateway test
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 10:36:16 -07:00
Steven Allen
af53380e8c gx: update go-path
fixes the changed path cat error causing the js-ipfs-api tests to fail

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 09:27:41 -07:00
Steven Allen
018265940c
Merge pull request #5626 from ipfs/feat/impoter-batching
Explicitally use BufferedDAG after removing Batch from importers
2018-10-30 09:24:57 -07:00
Steven Allen
e37b252c0c coreapi: fix errisdir
JavaScript expects this to be "this dag node is a directory". I'm almost of a
mind to say "don't parse errors" but, well, we don't give any better
alternatives.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 08:48:49 -07:00
Steven Allen
8543e27e0d
Merge pull request #5699 from ipfs/fix/pin-ls-output
Fix pin ls output when hash is specified
2018-10-30 07:52:19 -07:00
Łukasz Magiera
08d6e7844a fix pin ls output when hash is specified
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-30 15:26:18 +01:00
Steven Allen
3d28165c94
Merge pull request #5698 from ipfs/fix/libp2p-ping
ping: switch to the ping service enabled in the libp2p constructor
2018-10-30 07:22:59 -07:00
Steven Allen
cc0d6d7338 ping: switch to the ping service enabled in the libp2p constructor
We now configure the ping service in go-libp2p by default. Instead of creating a
new (duplicate) ping service, we can now just (a) rely on this to handle
incoming pings and (b) use the "Ping" function to ping peers.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 06:57:41 -07:00
Steven Allen
e332af8ed5 commands: fix a bunch of tiny commands-lib issues
* Always check errors returned by emit. Otherwise, we may not notice when the
  client goes away.
* Make sure to use EmitOnce instead of Emit when appropriate. Otherwise, we
  break javascript.

(thanks Magik6k for finding this before we cut the release...)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-30 06:49:08 -07:00
Steven Allen
f8375ec79c
Merge pull request #5680 from ipfs/fix/cleanup-ping
cleanup the ping command
2018-10-30 06:42:52 -07:00
Hector Sanjuan
8709e55b85 Add batching when Adding.
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-10-29 18:49:37 +01:00