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

Go 1.22 #33

Merged
merged 1 commit into from
Feb 15, 2024
Merged

Go 1.22 #33

merged 1 commit into from
Feb 15, 2024

Conversation

metachris
Copy link
Contributor

No description provided.

@@ -131,7 +131,7 @@ func (nc *BlxNodeConnection) connect() {

// fmt.Println("got message", string(nextNotification))
var txMsg common.BlxRawTxMsg
err = json.Unmarshal(nextNotification, &txMsg)
err = json.Unmarshal(nextNotification, &txMsg) //nolint:musttag

Choose a reason for hiding this comment

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

Out of curiosity, what's going on here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nice catch, and good q! https://github.com/go-simpler/musttag

meaning the fields here should all be json tagged:

type BlxRawTxMsg struct {
Params struct {
Result struct {
RawTx string
}
}
}

@metachris metachris merged commit 42be8ff into main Feb 15, 2024
2 checks passed
@metachris metachris deleted the go1.22 branch February 15, 2024 16:18
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