Skip to content

impl(storage): move from tokio::sync::SetOnce to std::sync::OnceLock#4198

Merged
alvarowolfx merged 1 commit intogoogleapis:mainfrom
alvarowolfx:impl-gcs-signed-url-rm-tokio-setonce
Jan 9, 2026
Merged

impl(storage): move from tokio::sync::SetOnce to std::sync::OnceLock#4198
alvarowolfx merged 1 commit intogoogleapis:mainfrom
alvarowolfx:impl-gcs-signed-url-rm-tokio-setonce

Conversation

@alvarowolfx
Copy link
Copy Markdown
Collaborator

tokio::sync::SetOnce required newer version of tokio. Move to std lib alternative.

Towards #3645 and fix minimal-version check on #4185

@alvarowolfx alvarowolfx requested review from a team January 9, 2026 03:12
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Jan 9, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.76%. Comparing base (9f39ae8) to head (ddb5424).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4198      +/-   ##
==========================================
- Coverage   94.78%   94.76%   -0.02%     
==========================================
  Files         187      187              
  Lines        7110     7110              
==========================================
- Hits         6739     6738       -1     
- Misses        371      372       +1     

☔ 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.

Copy link
Copy Markdown
Collaborator

@coryan coryan left a comment

Choose a reason for hiding this comment

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

I looked and the critical sections are short, they do not lock over a .await call. LGTM.

Copy link
Copy Markdown
Collaborator

@coryan coryan left a comment

Choose a reason for hiding this comment

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

Approved for realsies

@alvarowolfx alvarowolfx merged commit aba90f6 into googleapis:main Jan 9, 2026
30 checks passed
ldetmer pushed a commit to ldetmer/google-cloud-rust that referenced this pull request Jan 9, 2026
…oogleapis#4198)

tokio::sync::SetOnce required newer version of tokio. Move to `std` lib
alternative.

Towards googleapis#3645 and fix minimal-version check on
googleapis#4185
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the Cloud Storage API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants