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

fix(auth-storage): Thread safety #99

Merged

Conversation

krizzu
Copy link

@krizzu krizzu commented Dec 13, 2022

πŸ“‘ What does this PR do?

Addresses #94

Making auth-storage thread safe with mutex. Also swapping Map with LinkedMap

βœ… Checklist

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

πŸ§ͺ How can this PR been tested?

🧾 Tasks Remaining: (List of tasks remaining to be implemented)

  • What is remaining to be implemented in this PR? Mention a list of them

πŸ–ΌοΈ Screenshots (if applicable):

@krizzu krizzu force-pushed the fix/thread-safe-auth-storage branch from 0f65044 to 01bb8ec Compare December 14, 2022 19:59
@krizzu krizzu marked this pull request as ready for review December 14, 2022 20:01
Copy link
Member

@crocsandcoffee crocsandcoffee left a comment

Choose a reason for hiding this comment

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

Look's good, thanks for taking this off my shoulders πŸ˜„

@krizzu
Copy link
Author

krizzu commented Dec 16, 2022

Ready for merge

@krizzu krizzu force-pushed the fix/thread-safe-auth-storage branch from 55ce479 to e04cc44 Compare December 19, 2022 13:17
Copy link
Member

@crocsandcoffee crocsandcoffee left a comment

Choose a reason for hiding this comment

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

Overall looks good! Please just make the saving of access token async again and remove the moot withContext changes

@krizzu krizzu force-pushed the fix/thread-safe-auth-storage branch from e04cc44 to dcc0509 Compare December 20, 2022 12:27
@krizzu
Copy link
Author

krizzu commented Dec 20, 2022

changes reverted

@crocsandcoffee crocsandcoffee merged commit 4818e85 into AndroidDev-social:main Dec 21, 2022
@krizzu krizzu deleted the fix/thread-safe-auth-storage branch December 21, 2022 10:16
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.

3 participants