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 override flag for client reuse #487

Merged
merged 4 commits into from
Apr 15, 2021
Merged

Conversation

akhilkumarpilli
Copy link
Contributor

closes: #445

@akhilkumarpilli akhilkumarpilli marked this pull request as ready for review April 8, 2021 10:14
Copy link
Contributor

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

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

ACK, going forward if we need to add more client configuration, this should be added to the config file and obtained from the chain as opposed to using flags and stacking the function arguments.

Override probably makes sense to be a flag though

// Check if an identical light client already exists
clientID, found := FindMatchingClient(c, dst, clientState)
if !found {
clientID, found := "", false
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
clientID, found := "", false
var (
clientID string
found bool
)

You might want to commit these changes yourself since they probably aren't gofmt'd

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.

Add override flag for client reuse
2 participants