Skip to content
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

Feat/snappy cmd #127

Merged
merged 11 commits into from
Sep 30, 2014
Merged

Feat/snappy cmd #127

merged 11 commits into from
Sep 30, 2014

Conversation

whyrusleeping
Copy link
Member

Lets get these changes reviewed and merged in, makes things a bit more... "snappy"

@whyrusleeping whyrusleeping added the status/in-progress In progress label Sep 25, 2014
if err != nil {
return err
}
lk, err := lock.Lock(confdir + "/daemon.lock")
Copy link
Member

Choose a reason for hiding this comment

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

minor thing: "/daemon.lock" -> const daemonLock = "/daemon.lock"

lk, err := daemonLock(confdir)
if err == nil {
lk.Close()
return ErrDaemonNotRunning
Copy link
Member

Choose a reason for hiding this comment

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

i changed the order here, the lk.Close() was unreachable @whyrusleeping

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, thanks!

@jbenet
Copy link
Member

jbenet commented Sep 27, 2014

I rebased this on top of new master. daemon_test is not there yet. Aside from an interface change, the test fails (looks like sync issues on close-- DaemonListener's lk.Close() is released by a diff goroutine than (dl *DaemonListener) Close())

@jbenet
Copy link
Member

jbenet commented Sep 28, 2014

Fixed the test now. This still needs to be rebased on top of new master (conflicts will happen).

jbenet and others added 9 commits September 30, 2014 03:19
**For now**, we don't need to load/parse the private key
(which causes a signficant delay in commands) when doing
things entirely offline. This may change, and in that case
the private key should be loaded on demand.
Erroring out in core setup should cancel the context
to ensure subsystems are shut down. This has to happen
all over the place we use contexts.

@perfmode @whyrusleeping
@jbenet
Copy link
Member

jbenet commented Sep 30, 2014

Okay, rebased on top of master resolving conflicts. :) shipping this.

jbenet added a commit that referenced this pull request Sep 30, 2014
@jbenet jbenet merged commit 42a918d into master Sep 30, 2014
@jbenet jbenet deleted the feat/snappy-cmd branch September 30, 2014 10:47
@jbenet jbenet removed the status/in-progress In progress label Sep 30, 2014
@whyrusleeping
Copy link
Member Author

👍

@aschmahmann aschmahmann mentioned this pull request Feb 18, 2021
73 tasks
ariescodescream pushed a commit to ariescodescream/go-ipfs that referenced this pull request Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants