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:
1 parent
4e368f154f
commit
8b0d1aa4af
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user