Skip to content

Conversation

@vyourtchenko-connamara
Copy link

No description provided.

@vyourtchenko-connamara vyourtchenko-connamara marked this pull request as draft December 5, 2025 23:05
@vyourtchenko-connamara vyourtchenko-connamara force-pushed the fix-checksum-validate-on-parse branch from aa70104 to a693b59 Compare December 6, 2025 01:54
@vyourtchenko-connamara vyourtchenko-connamara marked this pull request as ready for review December 6, 2025 02:09
mp.msg.Header.rwLock.Unlock()
mp.msg.Body.rwLock.Unlock()
mp.msg.Trailer.rwLock.Unlock()
locked = false
Copy link
Contributor

Choose a reason for hiding this comment

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

This is an antipattern, if you need to reduce the locked surface use a dedicated function with a defer at the top as this function previously had

Copy link
Contributor

Choose a reason for hiding this comment

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

Why did this change? I’m not sure why you need to unlock

var expectedCheckSumStr string
expectedCheckSumStr, err = mp.msg.Trailer.GetString(tagCheckSum)
if err != nil {
return parseError{OrigError: "CheckSum tag missing"}
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this result in the message being ignored per standard FIX?

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