Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework async library in CAC client #88

Merged
merged 2 commits into from
Jun 24, 2024
Merged

Conversation

Datron
Copy link
Collaborator

@Datron Datron commented Jun 6, 2024

Problem

Clippy while analyzing CAC client shows a error for calling await on a MutexGuard. This happens when we use the standard library RwLock.

Solution

Use tokio RwLock that handles this and is better at concurrent and parallel processing. Also add an integration example for cac client that lets implementers test out features of the client

Screenshot 2024-06-06 at 12 23 39 PM

@Datron Datron requested a review from a team as a code owner June 6, 2024 06:55
@Datron Datron force-pushed the fix-client-locking branch from 592d6d6 to 1f98d69 Compare June 6, 2024 07:00
@Datron Datron force-pushed the fix-client-locking branch from 1f98d69 to 2d74390 Compare June 10, 2024 06:23
@ShubhranshuSanjeev ShubhranshuSanjeev added the priority Things that need immediate attention label Jun 20, 2024
@Datron Datron self-assigned this Jun 20, 2024
@Datron Datron force-pushed the fix-client-locking branch from 2d74390 to 4feaccd Compare June 21, 2024 07:59
@Datron Datron force-pushed the fix-client-locking branch from 4feaccd to 307135a Compare June 21, 2024 08:00
@Datron Datron requested a review from SanchithHegde June 21, 2024 08:00
@mahatoankitkumar mahatoankitkumar merged commit 0ec0b5f into main Jun 24, 2024
4 checks passed
@mahatoankitkumar mahatoankitkumar deleted the fix-client-locking branch June 24, 2024 07:01
Datron added a commit that referenced this pull request Jun 24, 2024
* feat: improve clients locking and handling in FFI

* chore: add example integrations that help with testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority Things that need immediate attention
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants