Skip to content

Provide an async implementation for the keystore#72

Draft
eikek wants to merge 1 commit into
mainfrom
chore/keystore-async
Draft

Provide an async implementation for the keystore#72
eikek wants to merge 1 commit into
mainfrom
chore/keystore-async

Conversation

@eikek

@eikek eikek commented Jun 19, 2026

Copy link
Copy Markdown
Member

Wraps blocking calls in tokio::task::spawn_blocking to ensure they run on a dedicated thread pool.

When instantiating the http-client, the access token is not read from the keystore at construction time, but on each request instead. This ensures the proper token on long lived instances. This is more a theoretical problem with the cli, but the code could be used as a library as well.

Wraps blocking calls in `tokio::task::spawn_blocking` to ensure they
run on a dedicated thread pool.

When instantiating the http-client, the access token is not read from
the keystore at construction time, but on each request instead. This
ensures the proper token on long lived instances. This is more a
theoretical problem with the cli, but the code could be used as a
library as well.
@eikek eikek added the chore label Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant