-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
15 additions
and
56 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 |
---|---|---|
|
@@ -36,6 +36,7 @@ bunfig.toml | |
lab/ | ||
lab.ts | ||
mydatabase*/ | ||
stress-test/ | ||
|
||
# Pup data | ||
.pup | ||
.pup |
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
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 |
---|---|---|
@@ -1,13 +1,12 @@ | ||
// Configurable | ||
export const LOCK_DEFAULT_MAX_RETRIES = 32; | ||
export const LOCK_DEFAULT_INITIAL_RETRY_INTERVAL_MS = 20; // Increased with itself on each retry, so the actual retry interval is 20, 40, 60 etc. 32 and 20 become about 10 seconds total. | ||
export const LOCK_STALE_TIMEOUT_S = 60_000; | ||
|
||
export const SUPPORTED_LEDGER_VERSIONS = ["ALPH"]; | ||
|
||
export const LEDGER_BASE_OFFSET = 1_024; | ||
|
||
export const LEDGER_MAX_READ_FAILURES = 10; | ||
|
||
export const LEDGER_PREFETCH_BYTES = 2_048; | ||
export const SYNC_INTERVAL_MS = 1_000; // Overridable with instance configuration | ||
|
||
export const SYNC_INTERVAL_MS = 1_000; | ||
// Extremely constant | ||
export const LEDGER_BASE_OFFSET = 1_024; // DO NOT CHANGE! | ||
export const KV_KEY_ALLOWED_CHARS = /^[a-zA-Z0-9\-_@]+$/; |
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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.