globals: Add new DatabaseReadTimeout

The new field is used as a buffer in certain list queries, to account
for concurrent transactions.
This commit is contained in:
Johan Brandhorst-Satzkorn committed 2024-01-05 07:43:20 -08:00
1 parent 4e368f154f
commit 8b0d1aa4af
1 file changed
+4
+4
View File
@@ -30,6 +30,10 @@ var (
// DefaultMaxPageSize is the maximum list page size allowed if not set in the config.
DefaultMaxPageSize = 1000
// RefreshReadLookbackDuration is used to account for database state mutations
// missed due to concurrent transactions.
RefreshReadLookbackDuration = 30 * time.Second
// ContextMaxRequestSizeTypeKey is a value to keep linters from complaining
// about clashing string identifiers
ContextMaxRequestSizeTypeKey ContextMaxRequestSizeType