-
Notifications
You must be signed in to change notification settings - Fork 29
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
fix(auth-storage): Thread safety #99
Conversation
0f65044
to
01bb8ec
Compare
There was a problem hiding this 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 π
...c/commonMain/kotlin/social/androiddev/common/persistence/localstorage/DodoAuthStorageImpl.kt
Outdated
Show resolved
Hide resolved
...c/commonMain/kotlin/social/androiddev/common/persistence/localstorage/DodoAuthStorageImpl.kt
Show resolved
Hide resolved
Ready for merge |
...c/commonMain/kotlin/social/androiddev/common/persistence/localstorage/DodoAuthStorageImpl.kt
Outdated
Show resolved
Hide resolved
...ry/src/commonMain/kotlin/social/androiddev/common/repository/AuthenticationRepositoryImpl.kt
Outdated
Show resolved
Hide resolved
55ce479
to
e04cc44
Compare
...e/src/commonMain/kotlin/social/androiddev/common/persistence/localstorage/DodoAuthStorage.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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
...c/commonMain/kotlin/social/androiddev/common/persistence/localstorage/DodoAuthStorageImpl.kt
Outdated
Show resolved
Hide resolved
...e/src/commonMain/kotlin/social/androiddev/common/persistence/localstorage/DodoAuthStorage.kt
Outdated
Show resolved
Hide resolved
...ry/src/commonMain/kotlin/social/androiddev/common/repository/AuthenticationRepositoryImpl.kt
Outdated
Show resolved
Hide resolved
...ry/src/commonMain/kotlin/social/androiddev/common/repository/AuthenticationRepositoryImpl.kt
Outdated
Show resolved
Hide resolved
e04cc44
to
dcc0509
Compare
changes reverted |
π What does this PR do?
Addresses #94
Making auth-storage thread safe with
mutex
. Also swapping Map with LinkedMapβ Checklist
π§ͺ How can this PR been tested?
π§Ύ Tasks Remaining: (List of tasks remaining to be implemented)
πΌοΈ Screenshots (if applicable):