Skip to content
This repository was archived by the owner on Jul 5, 2026. It is now read-only.

refactor: replace unwrap() with expect() for better error diagnostics - #158

Open
stevennellson0619-arch wants to merge 1 commit into
jito-foundation:masterfrom
stevennellson0619-arch:fix/update-deps
Open

refactor: replace unwrap() with expect() for better error diagnostics#158
stevennellson0619-arch wants to merge 1 commit into
jito-foundation:masterfrom
stevennellson0619-arch:fix/update-deps

Conversation

@stevennellson0619-arch

@stevennellson0619-arch stevennellson0619-arch commented Jun 27, 2026

Copy link
Copy Markdown

Summary

Replace bare unwrap() calls with descriptive expect() messages in critical thread spawning code. This improves debuggability when panics occur during initialization.

Changes

  • core/src/tpu.rs: Add expect messages to spawn_server().unwrap() calls for QUIC server threads
  • core/src/fetch_stage.rs: Add expect message to thread builder unwrap

Motivation

Bare unwrap() calls in thread spawning code produce generic panic messages that make it difficult to diagnose which component failed during startup. Adding descriptive expect() messages provides immediate context.

Testing

  • No behavioral changes, only panic message improvements
  • Existing tests should pass unchanged

@stevennellson0619-arch stevennellson0619-arch changed the title chore: update build configuration for CI compatibility refactor: replace unwrap() with expect() for better error diagnostics Jun 28, 2026
- Replace bare unwrap() with descriptive expect() messages in QUIC
  server and fetch stage thread spawning for better panic diagnostics
- Add build script to embed git hash, build timestamp, and protoc
  version into the binary for runtime version identification
- Verify protobuf compiler and submodule availability at build time

This helps debug deployment issues by making the exact build
configuration available at runtime via embedded environment variables.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant