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

Use panics for serialisation errors #32

Merged
merged 4 commits into from
Aug 21, 2024
Merged

Use panics for serialisation errors #32

merged 4 commits into from
Aug 21, 2024

Conversation

jackkleeman
Copy link
Contributor

This allows us to simplify apis quite a bit, much less errors all over the place

Copy link

github-actions bot commented Aug 20, 2024

Test Results

  5 files  ±0    5 suites  ±0   2m 13s ⏱️ -1s
 41 tests ±0   41 ✅ ±0  0 💤 ±0  0 ❌ ±0 
101 runs  ±0  101 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 753f831. ± Comparison against base commit 841b7c3.

♻️ This comment has been updated with latest results.

context.go Outdated Show resolved Hide resolved
Copy link
Contributor

@slinkydeveloper slinkydeveloper left a comment

Choose a reason for hiding this comment

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

LGTM, this definitely improves the code!

context.go Outdated
Comment on lines 170 to 171
// If the invocation was cancelled while obtaining the state (only possible if eager state is disabled),
// a cancellation error is returned. If eager state is enabled (the default), err will always be ErrKeyNotFound or nil.
Copy link
Contributor

Choose a reason for hiding this comment

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

Because this is a runtime config, and not SDK, i wouldn't personally build code against such assumption that eager state is enabled or not

@jackkleeman jackkleeman merged commit 333963c into main Aug 21, 2024
3 checks passed
@jackkleeman jackkleeman deleted the codec-panic branch August 21, 2024 10:40
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