-
Notifications
You must be signed in to change notification settings - Fork 814
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enable fdb transaction timeout customization (#4166)
Co-authored-by: Zeyad Deeb <zeyad.deeb@saks.com> Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
- Loading branch information
1 parent
99f41ff
commit 1530f91
Showing
2 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
use once_cell::sync::Lazy; | ||
|
||
pub static FOUNDATIONDB_TRANSACTION_TIMEOUT: Lazy<i32> = | ||
lazy_env_parse_or_else!("SURREAL_FOUNDATIONDB_TRANSACTION_TIMEOUT", i32, |_| { 5000 }); | ||
|
||
pub static FOUNDATIONDB_TRANSACTION_RETRY_LIMIT: Lazy<i32> = | ||
lazy_env_parse_or_else!("SURREAL_FOUNDATIONDB_TRANSACTION_RETRY_LIMIT", i32, |_| { 5 }); | ||
|
||
pub static FOUNDATIONDB_TRANSACTION_MAX_RETRY_DELAY: Lazy<i32> = | ||
lazy_env_parse_or_else!("SURREAL_FOUNDATIONDB_TRANSACTION_MAX_RETRY_DELAY", i32, |_| { 500 }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters