Skip to content

Conversation

@tisonkun
Copy link
Collaborator

cc @andylokandy take anything that helps :D

Signed-off-by: tison <wander4096@gmail.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR performs code tidying and cleanup on the SPSC (Single Producer Single Collector) module and related files. The changes focus on improving code clarity through better naming, refactoring, and removing unused code.

  • Adds proper copyright headers and attribution to the derived SPSC implementation
  • Refactors variable names for better clarity (pendingpending_msgs)
  • Simplifies code patterns and removes unused imports/static variables
  • Corrects spelling errors in comments

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
fastrace/src/util/spsc.rs Added copyright header with attribution, renamed pending field to pending_msgs, refactored bounded() and Drop implementations, changed visibility of is_under_pressure() to pub(crate)
fastrace/src/util/command_bus.rs Updated copyright year from 2025 to 2024
fastrace/src/collector/global_collector.rs Removed unused imports (AtomicU64, Duration) and static REPORT_INTERVAL, fixed typo in comment ("collectior" → "collector"), refactored global collector loop to eliminate static variable access

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@andylokandy andylokandy merged commit e1a5acf into main Dec 17, 2025
17 checks passed
@andylokandy andylokandy deleted the tidy branch December 17, 2025 15:28
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.

3 participants