Skip to content

fix: remove potential panics and improve robustness#14

Merged
mattisonchao merged 1 commit intomainfrom
pr/06-remove-panics
Mar 21, 2026
Merged

fix: remove potential panics and improve robustness#14
mattisonchao merged 1 commit intomainfrom
pr/06-remove-panics

Conversation

@mattisonchao
Copy link
Copy Markdown
Member

Summary

  • Replace .unwrap() calls on shard boundaries with safe if let Some checks
  • Prevent panics when shard boundaries are unexpectedly missing

Test plan

  • CI passes (fmt, clippy, build, tests)

- Fix shard_manager: replace unwrap() on shard_boundaries with if-let
  to gracefully handle assignments without boundaries instead of panicking
- Add Display impl for Notification enum for better logging

Signed-off-by: mattisonchao <mattisonchao@gmail.com>
@mattisonchao mattisonchao merged commit ac3fc23 into main Mar 21, 2026
2 checks passed
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.

1 participant