Skip to content

fix: remove orphaned module guards.rs and its require_not_paused func… - #309

Merged
N-thnI merged 2 commits into
Vero-protocol:mainfrom
okeolaolatun23-glitch:src/guards.rs-is-an-orphaned-module-duplicating-circuit_breaker-require_not_paused
Aug 25, 2026
Merged

fix: remove orphaned module guards.rs and its require_not_paused func…#309
N-thnI merged 2 commits into
Vero-protocol:mainfrom
okeolaolatun23-glitch:src/guards.rs-is-an-orphaned-module-duplicating-circuit_breaker-require_not_paused

Conversation

@okeolaolatun23-glitch

Copy link
Copy Markdown
Contributor

Closes #192

Pull Request: Remove Orphaned Duplicate Pause Guard

Summary

Remove src/guards.rs, an unregistered module containing a duplicate copy of
circuit_breaker::require_not_paused. This eliminates an unused maintenance
trap while preserving the existing pause-check behavior.

Related Issue

Closes #

Changes Made

  • Deleted the orphaned src/guards.rs module.
  • Kept circuit_breaker::require_not_paused as the single source of truth.
  • Confirmed that all existing pause-check call sites use the circuit-breaker
    implementation.

Testing Performed

  • Workspace diagnostics: no errors reported.
  • Confirmed that src/guards.rs is no longer present.
  • Confirmed that pause-check references resolve to
    circuit_breaker::require_not_paused.
  • cargo check was not run because the command was skipped in the environment.

Checklist

  • I have linked the related issue with Closes #<number>.
  • I have tested my changes locally.
  • I have run cargo fmt --check.
  • I have run cargo clippy -- -D warnings where applicable.
  • I have updated relevant documentation.

@N-thnI
N-thnI merged commit bf9409d into Vero-protocol:main Aug 25, 2026
4 checks passed
@N-thnI

N-thnI commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Merged — thanks for the contribution! If you've got a moment, a rating on GrantFox helps the project.

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.

src/guards.rs is an orphaned module duplicating circuit_breaker::require_not_paused

2 participants