Skip to content
This repository has been archived by the owner on Aug 12, 2020. It is now read-only.

Awesome IPLD endeavour #74

Merged
merged 1 commit into from
Oct 28, 2016
Merged

Awesome IPLD endeavour #74

merged 1 commit into from
Oct 28, 2016

Conversation

daviddias
Copy link
Contributor

No description provided.

@@ -2,7 +2,7 @@
"name": "ipfs-unixfs-engine",
"version": "0.11.4",
"description": "JavaScript implementation of the unixfs Engine used by IPFS",
"main": "lib/index.js",
"main": "src/index.js",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: remove before merge

@@ -3,14 +3,14 @@
const UnixFS = require('ipfs-unixfs')
const assert = require('assert')
const pull = require('pull-stream')
const pushable = require('pull-pushable')
const write = require('pull-write')
const pullPushable = require('pull-pushable')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this renaming?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it helps to know that 'it is a pull stream thing'

@daviddias daviddias force-pushed the awesome-ipld branch 10 times, most recently from 290ca05 to f4082d5 Compare October 26, 2016 18:38
@daviddias
Copy link
Contributor Author

I've migrated the importer to the Async interfaces and had to go through a major overhaul of the flush-tree.js, since it was relying on it being very sync to traverse the tree.

unixfs-engine needs an overhaul cleanup, refactor and simplification, it takes a bit to sync in what is going on inside the code, although the high level algorithm is quite simple. flush-tree.js has improved a lot with this PR.

I'm just missing 4 last tests for the importer, namely the ones with directories, traverse is getting called twice for the same dir, increasing the level of nestness, still trying to understand why. Left some logs to help with the debugging.

@dignifiedquire
Copy link
Contributor

thank you @diasdavid! lets wait for the full refactoring until we add the hamt though, as that will add additional constraints on the interfaces

@dignifiedquire
Copy link
Contributor

@diasdavid fixed and rebase

@daviddias
Copy link
Contributor Author

@dignifiedquire ❤️

@daviddias daviddias force-pushed the awesome-ipld branch 2 times, most recently from b064c80 to 1de430b Compare October 28, 2016 19:08
@daviddias daviddias merged commit ed4a64a into master Oct 28, 2016
@daviddias daviddias deleted the awesome-ipld branch October 28, 2016 19:17
@daviddias daviddias removed the status/in-progress In progress label Oct 28, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants