globals: Add new DatabaseReadTimeout

The new field is used as a buffer in certain list queries, to account
for concurrent transactions.
pull/4202/head
Johan Brandhorst-Satzkorn 3 years ago
parent 4e368f154f
commit 8b0d1aa4af

@ -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

Loading…
Cancel
Save