-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move parts of ipfs add
into core/coreunix
#1778
Conversation
href: #1136 |
Since the pin callback has been removed, the current One approach is to define |
This looks pretty good to me. My only concern is making sure that things that are commands lib specific stay in the commands lib, for example the |
In the beginning I'd have opted the progress reader to be in commands lib, but the reader has to wrap the file before the One option is to add generic callback func option. |
In this case, |
@@ -27,14 +162,13 @@ func Add(n *core.IpfsNode, r io.Reader) (string, error) { | |||
|
|||
// TODO more attractive function signature importer.BuildDagFromReader |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this todo get removed now?
Hrm... youre right. that seems a bit more complicated.. in that case its probably fine to leave things where they are now. |
4588243
to
832c8f1
Compare
@whyrusleeping fixed. Also progressReader depends on |
yeah... i'm all for being less messy. |
Assign to me when i should CR -> merge |
@jbenet the PR works. It needs CR for the design aspect. |
sorry for the delay will try to get to this this week, else early next. |
trickle: trickle, | ||
wrap: wrap, | ||
} | ||
fileAdder := coreunix.NewAdder(req.Context(), n, outChan) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does the Adder work just fine without specifying all the below parameters? (i.e. does it have sane defaults?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes it does
832c8f1
to
f28f3ad
Compare
License: MIT Signed-off-by: rht <rhtbot@gmail.com>
f28f3ad
to
7b6d8a1
Compare
this roughly LGTM. thoughts @whyrusleeping ? |
Yeah, i think this looks good. |
ok. rerunning tests as they failed. |
Move parts of `ipfs add` into core/coreunix
No description provided.