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

export util functions such as StartFlushUpgradeHandshake #3765

Closed
charleenfei opened this issue Jun 6, 2023 · 4 comments
Closed

export util functions such as StartFlushUpgradeHandshake #3765

charleenfei opened this issue Jun 6, 2023 · 4 comments
Labels
04-channel needs discussion Issues that need discussion before they can be worked on

Comments

@charleenfei
Copy link
Contributor

is there a strong reason that we don't just want to let StartFlushUpgradeHandshake be an exported function and not need these wrappers?

To me, adding this additional level of indirection hurts my ability to reason about where things can be used in certain ways and why.

I don't think it's so bad to just export k.startFlushUpgradeHandshake .

This is a mild preference though, if the general consensus is to have this additional wrapper I'm okay with it 👍

Originally posted by @chatton in #3671 (comment)

@charleenfei charleenfei added needs discussion Issues that need discussion before they can be worked on 04-channel labels Jun 6, 2023
@colin-axner
Copy link
Contributor

see followup #3671 (comment)

@DimitrisJim
Copy link
Contributor

DimitrisJim commented Jun 7, 2023

I agree with Colin's approach. It is a hassle due to go's visibility rules to get these tested but the benefit of not exposing a large API outweighs that hassle.

@chatton
Copy link
Contributor

chatton commented Jun 7, 2023

I think I'm convinced by @colin-axner's response, it's not ideal but I agree it's worth doing 👍 I think we can close this issue!

@charleenfei
Copy link
Contributor Author

closing this issue in favour of our current design

@github-project-automation github-project-automation bot moved this to Todo in ibc-go Jun 7, 2023
@crodriguezvega crodriguezvega moved this from Todo to Done in ibc-go Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
04-channel needs discussion Issues that need discussion before they can be worked on
Projects
Status: Done 🥳
Development

No branches or pull requests

4 participants