1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-15 20:01:44 +08:00

256 Commits

Author SHA1 Message Date
c225c344e4 Merge pull request #4833 from ipfs/misc/remove-dead-code
misc: Remove some dead code
2018-04-20 23:39:55 +09:00
076fd91e5f Merge pull request #4835 from ipfs/fix/typos
misc: Fix a few typos
2018-04-20 23:35:58 +09:00
e047b58a33 dag: deduplicate AddNodeLinkClean into AddNodeLink
`AddNodeLink` used to cache the linked node whereas `AddNodeLinkClean`
did not, however, at some point the former was changed to do the same
thing as the latter (i.e., not cache the linked node). That is, they now
do the same thing so there's no reason to have both.

The name `AddNodeLink` is preserved, even though it used to imply the
cache functionality contrasting with the `Clean` suffix of
`AddNodeLinkClean`, with this function removed the cache connotation
doesn't hold anymore.

License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-04-16 22:25:24 -03:00
585d97f3a5 Merge pull request #4889 from ipfs/feat/faster-hamt
improve performance of HAMTs
2018-04-08 09:41:19 +09:00
b290286dd7 misc: Fix a few typos
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-30 09:47:22 +02:00
2ee5cfb90f fix error style
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-30 09:43:27 +02:00
1907e66eb8 add benchmark for hamt walking
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-29 18:20:28 -07:00
f1ae13d721 faster hamt logic
1. Use a custom bitfield type instead of bigints.
2. Make iterating over a hamt *significantly* faster.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-29 18:20:28 -07:00
dbb2ca2ece remove redundant validation logic
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-29 18:19:55 -07:00
e2387ebbb6 fix hamt node not protobuf error
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-29 18:19:55 -07:00
e06436d090 don't resolve children unnecessarily when listing a sharded directory
We only need to get the child if it's a shard.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-27 15:01:32 -07:00
71a0a5c837 appease go lint
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-23 18:02:02 -07:00
dd94858981 fix error when encountering a sharded directory when expecting a file
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-23 15:59:21 -07:00
234ad1811d make the tar writer handle sharded ipfs directories
makes ipfs get work on sharded directories

fixes #4871

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-23 15:58:39 -07:00
a8645afbcf pbreader: use ReadFull instead of reimplementing it
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-23 13:39:27 +01:00
4002f97724 don't assume that Read reads all available bytes in pbdagreader
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-23 13:39:27 +01:00
d6589e5e1c don't make assumptions about readers in the dagmodifier
The dagmodifier *only* works because we're using a bytes.Buffer.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-23 13:39:12 +01:00
7e5d162efa Merge pull request #4819 from ipfs/misc/retreival
misc: spelling of retrieval
2018-03-22 23:31:35 -07:00
ae528640d9 misc: Remove some dead code
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-21 01:34:04 +01:00
78097d171d misc: spelling of retrieval
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-15 21:07:22 +01:00
f710b31ff4 unixfs: clean path in DagArchive
Fixes #4720.

License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-03-04 20:10:19 -03:00
381977476f Extract: chunker: rename "chunk" to "chunker" as it is more consistent
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-08 12:49:39 +01:00
76d228cf75 Extract chunker: Use last gx'ed go-ipfs-chunker
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-08 12:43:29 +01:00
1811425aab go-ipfs-chunker: Use the stable gx'ed release
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-08 12:34:51 +01:00
f47424d9b0 Fix missing rename in tests
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-08 12:34:15 +01:00
c613fbec38 WIP: Extract: importers/chunk module as go-ipfs-chunker
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-08 12:34:15 +01:00
f4f450d774 Golint: remove extra // in comment
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-07 12:33:58 +01:00
3ec869fee7 Golint: improve unixfs/dagreader.go comments
Per @whys suggestions

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-07 10:07:19 +01:00
576872076c unixfs/mod: use errors.New() for all defined errors
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-06 19:19:30 +01:00
79baf42e1e Golint: improve io.Find documentation
per @stebalien's comment

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-06 19:17:59 +01:00
8bb45fda8e Golint: make BufDagReader public
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-06 19:14:48 +01:00
ca4271b782 Golint: unixfs/io
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-06 13:50:02 +01:00
f074292e48 Golint: unixfs/mod unixfs/test
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-06 13:50:02 +01:00
16934b9c68 Golint: unixfs/hamt
Note, stuttering required renaming of HamtShard to Shard.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-06 13:50:02 +01:00
694ab67952 Golint: unixfs/archive
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-06 12:43:13 +01:00
16a54a8561 Golint: unixfs main module
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-06 12:05:41 +01:00
8e6519bd5a Merge pull request #4640 from ipfs/doc/godoc-importer
Docs: golint-ify  "importers" module
2018-02-03 15:30:27 -08:00
1de040d0b7 Use a bitswap session for 'Cat'
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-02-02 12:25:20 -08:00
5d90aa2a8f Docs: golint-ify "importers" module
This fixes all golint warnings in the importers module, adding
documentation and module descriptions.

License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-01 23:47:38 +01:00
f9d935b984 rename import of go-ipld-format from node/format to ipld
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-29 11:55:34 -08:00
699b2c4bb8 make code-climate happier
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-25 15:43:03 -08:00
d154b4a990 merkledag: switch to new dag interface
Also:

* Update the blockstore/blockservice methods to match.
* Construct a new temporary offline dag instead of having a
  GetOfflineLinkService method.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-25 15:13:19 -08:00
730754d9d2 dagmodifier: remove useless offset update
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-25 15:13:19 -08:00
fe8846fcd7 gx: mass update
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-24 15:58:44 -08:00
dea8c4d70b test promised don't get allocated where not wanted
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-01-02 13:35:02 -08:00
092df586d1 clear out memory after reads from the dagreader
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-12-31 13:14:27 -08:00
dfe7ef4fcf gx: update go-multihash
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-14 13:09:51 -08:00
76e4dcf757 appease codeclimate
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-12-04 10:59:57 -08:00
f8eaae329f fix hamt delete issue
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-11-18 08:39:38 -08:00
005d243cd3 Merge pull request #4320 from ipfs/fix/gateway-seeker
gateway: fix seeker can't seek on specific files
2017-10-20 13:15:32 +01:00