Skip to content

Remove redundant FallbackToProvider call in MedallionAbpDistributedLock#25497

Merged
EngincanV merged 1 commit into
devfrom
fix/redundant-fallback-to-provider-call
Jun 1, 2026
Merged

Remove redundant FallbackToProvider call in MedallionAbpDistributedLock#25497
EngincanV merged 1 commit into
devfrom
fix/redundant-fallback-to-provider-call

Conversation

@maliming

Copy link
Copy Markdown
Member

Removes the standalone CancellationTokenProvider.FallbackToProvider(cancellationToken) call in MedallionAbpDistributedLock.TryAcquireAsync whose return value was discarded. The same call is made again on the next line as the argument to TryAcquireLockAsync, and FallbackToProvider is a pure extension method with no side effects.

Resolves #25496

Copilot AI review requested due to automatic review settings May 29, 2026 08:09
@maliming maliming added this to the 10.5-preview milestone May 29, 2026
@maliming maliming requested a review from EngincanV May 29, 2026 08:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 cleans up MedallionAbpDistributedLock.TryAcquireAsync by removing a redundant standalone call to CancellationTokenProvider.FallbackToProvider(cancellationToken) whose return value was discarded, while preserving the actual used call passed into TryAcquireLockAsync (resolving #25496).

Changes:

  • Removed an unused standalone invocation of FallbackToProvider(...) in TryAcquireAsync.
  • Kept the single, effective FallbackToProvider(...) call used as the cancellation token argument for lock acquisition.

@codecov

codecov Bot commented May 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.41%. Comparing base (c7b7b87) to head (e42ed42).

Additional details and impacted files
@@            Coverage Diff             @@
##              dev   #25497      +/-   ##
==========================================
+ Coverage   49.40%   49.41%   +0.01%     
==========================================
  Files        3670     3670              
  Lines      123599   123599              
  Branches     9453     9453              
==========================================
+ Hits        61068    61081      +13     
+ Misses      60711    60683      -28     
- Partials     1820     1835      +15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@EngincanV EngincanV merged commit 6e00e10 into dev Jun 1, 2026
4 checks passed
@EngincanV EngincanV deleted the fix/redundant-fallback-to-provider-call branch June 1, 2026 11:04
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.

Redundant empty call to FallbackToProvider in MedallionAbpDistributedLock.TryAcquireAsync

3 participants