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

chore: make Client::get_config sync #6652

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maan2003
Copy link
Member

@maan2003 maan2003 commented Jan 6, 2025

always use the correct lock for the job

@maan2003 maan2003 requested review from a team as code owners January 6, 2025 19:35
@maan2003 maan2003 force-pushed the ma/jj-mrolvkmpkuvn branch from 8ceb7d0 to 01dbefc Compare January 6, 2025 19:37
@maan2003 maan2003 enabled auto-merge January 6, 2025 19:37
@maan2003 maan2003 marked this pull request as draft January 6, 2025 20:02
auto-merge was automatically disabled January 6, 2025 20:02

Pull request was converted to draft

@elsirion
Copy link
Contributor

elsirion commented Jan 7, 2025

Is there any reason we might want the fn to be async even though the lock is sync? E.g. needing to read something from the DB in the future? I'm inclined to make things async even if not strictly needed.

@maan2003
Copy link
Member Author

maan2003 commented Jan 7, 2025

even if we read from database, we can always have in memory copy and updating it on writes

@maan2003 maan2003 force-pushed the ma/jj-mrolvkmpkuvn branch from 01dbefc to e2a0a21 Compare January 7, 2025 15:38
@maan2003 maan2003 force-pushed the ma/jj-mrolvkmpkuvn branch from e2a0a21 to 0f9c6f2 Compare January 8, 2025 14:59
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.

2 participants