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 decode flag for GetBlob() by reworking codec layer #592

Merged
merged 2 commits into from
Jun 6, 2024

Conversation

teddyknox
Copy link
Contributor

Why are these changes needed?

Checks

  • I've made sure the lint is passing in this PR.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@teddyknox teddyknox requested review from epociask and afkbyte May 31, 2024 21:16
api/clients/codecs/default_blob_codec.go Show resolved Hide resolved
Comment on lines +53 to +57
if config.DisablePointVerificationMode {
codec = codecs.NewNoIFFTCodec(lowLevelCodec)
} else {
codec = codecs.NewIFFTCodec(lowLevelCodec)
}
Copy link

Choose a reason for hiding this comment

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

Knit - the same effect could be achieved via some encoding option type versus having to manage multiple codec types in different files (i.e, ifft, no_ifft)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm going to leave this as it is for now on the rationale that this option pattern is most useful when you're in a situation where you would otherwise define multiple constructor functions (with different goals). Since we are happy with one constructor function right now it seems like overkill to decompose the initialization of this into separate option functions.

@teddyknox teddyknox requested a review from epociask June 6, 2024 15:14
Copy link

@epociask epociask left a comment

Choose a reason for hiding this comment

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

LGTM

@teddyknox teddyknox merged commit e90cb74 into Layr-Labs:master Jun 6, 2024
7 checks passed
@teddyknox teddyknox deleted the high-level-client branch June 6, 2024 18:05
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