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

add UUID to root context #436

Merged
merged 2 commits into from
Dec 9, 2014
Merged

add UUID to root context #436

merged 2 commits into from
Dec 9, 2014

Conversation

btc
Copy link
Contributor

@btc btc commented Dec 9, 2014

part of #435

  • enriches the root context
  • fixes Loggable recipient in NetMessage object

We probably want to officially deprecate the command context and use the context.Context to shuttle the data (config path, etc.) across the boundary (main -> commands lib -> ipfs command). Yet another TODO.

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
@btc btc added the status/in-progress In progress label Dec 9, 2014
@btc btc changed the title start threading context through the system add UUID to root context Dec 9, 2014
@jbenet
Copy link
Member

jbenet commented Dec 9, 2014

im so excited! started from the bottom now we're here

if i.req == nil {
return nil, errors.New("constructing node without a request")
}
func (i *cmdInvocation) nodeFunc(ctx context.Context) func() (*core.IpfsNode, error) {
Copy link
Member

Choose a reason for hiding this comment

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

nodeFunc reads more like a getter. maybe either

  • constructNodeFunc
  • make the function check
if i.node != nil {
  return i.node, nil
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

editing in the browser here goes nothing
@btc
Copy link
Contributor Author

btc commented Dec 9, 2014

RFM?

@jbenet
Copy link
Member

jbenet commented Dec 9, 2014

@maybebtc thanks, yep!

jbenet added a commit that referenced this pull request Dec 9, 2014
@jbenet jbenet merged commit beb70c9 into master Dec 9, 2014
@jbenet jbenet deleted the feat/context-clues branch December 9, 2014 23:41
@jbenet jbenet removed the status/in-progress In progress label Dec 9, 2014
@btc
Copy link
Contributor Author

btc commented Dec 12, 2014

in action

image

@btc btc mentioned this pull request Dec 14, 2014
2 tasks
@aschmahmann aschmahmann mentioned this pull request Aug 23, 2021
62 tasks
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