mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[PR #232] [MERGED] Refresh token with Rwlock #328
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#328
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ramsayleung/rspotify/pull/232
Author: @marioortizmanero
Created: 7/15/2021
Status: ✅ Merged
Merged: 7/16/2021
Merged by: @ramsayleung
Base:
ramsay_support_refresh_token← Head:refresh_token_rwlock📝 Commits (7)
0034a57Attempt at refreshing token with RwLock549577eDocumentget_tokenandget_token_mut94a778cPrettier errors for unwrap6993e37format2d5390eget_token_mut doesn't refresh the tokene999802Fix testscd2255dFix docs📊 Changes
8 files changed (+134 additions, -49 deletions)
View changed files
📝
Cargo.toml(+5 -0)➕
examples/ureq/threading.rs(+45 -0)📝
examples/with_refresh_token.rs(+3 -3)📝
src/auth_code.rs(+19 -16)📝
src/auth_code_pkce.rs(+18 -15)📝
src/client_creds.rs(+14 -9)📝
src/clients/base.rs(+29 -5)📝
src/clients/oauth.rs(+1 -1)📄 Description
This is my attempt at #224 with a RwLock to enable concurrency.
The main drawback is that we can't derive
Clonefor the clients. But it allows concurrency for the client, which may be a must for blocking clients?🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
build_map!macro with a function #399build_json!with a JSON builder API #403