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

optimize by trusting host implementations #38

Closed
mathetake opened this issue Sep 9, 2020 · 1 comment
Closed

optimize by trusting host implementations #38

mathetake opened this issue Sep 9, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@mathetake
Copy link
Member

mathetake commented Sep 9, 2020

some of the if statements can be removed by trusting host implementations:

if _, ok := s.rootContexts[rootContextID]; !ok {
panic("invalid root context id")
}
if _, ok := s.streamContexts[contextID]; ok {
panic("context id duplicated")
}

we should discuss how to deal with this

@mathetake mathetake added the enhancement New feature or request label Sep 16, 2020
@mathetake
Copy link
Member Author

Closing until the necessity comes up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant