8000 fix: Increase lock timeout for calculating document diff by tommoor · Pull Request #8902 · outline/outline · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: Increase lock timeout for calculating document diff #8902

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

Merged
merged 1 commit into from
Apr 9, 2025

Conversation

tommoor
Copy link
Member
@tommoor tommoor commented Apr 8, 2025

No description provided.

*/
public static async getDataOrSet<T>(
key: string,
callback: () => Promise<T | undefined>,
expiry?: number
expiry: number,
lockTimeout: number = MutexLock.defaultLockTimeout
Copy link
Member Author

Choose a reason for hiding this comment

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

Obviously I don't love that this is a mixture of seconds and milliseconds – if we change expiry here to be milliseconds then it's the only method in this helper like that which is also weird.

@tommoor tommoor marked this pull request as ready for review April 8, 2025 03:06
@tommoor tommoor merged commit 9ce7133 into main Apr 9, 2025
13 checks passed
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
0