mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-14 19:26:43 +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
|
||
|
)
|