mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2024-11-23 21:03:19 +00:00
16 lines
409 B
Go
16 lines
409 B
Go
|
package limiter
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
const (
|
||
|
// DefaultPrefix is the default prefix to use for the key in the store.
|
||
|
DefaultPrefix = "limiter"
|
||
|
|
||
|
// DefaultMaxRetry is the default maximum number of key retries under
|
||
|
// race condition (mainly used with database-based stores).
|
||
|
DefaultMaxRetry = 3
|
||
|
|
||
|
// DefaultCleanUpInterval is the default time duration for cleanup.
|
||
|
DefaultCleanUpInterval = 30 * time.Second
|
||
|
)
|