mirror of
https://github.com/hibiken/asynq.git
synced 2025-08-19 15:08:55 +08:00
Use math.MaxInt64 instead of custom const
This commit is contained in:
@@ -39,12 +39,6 @@ const (
|
||||
CancelChannel = "asynq:cancel" // PubSub channel
|
||||
)
|
||||
|
||||
// Max value for int64.
|
||||
//
|
||||
// Use this value to check if a redis counter value reached maximum.
|
||||
// As documeted in https://redis.io/commands/INCR, a string stored at a redis key is interpreted as a base-10 64 bit signed integer.
|
||||
const MaxInt64 = 1<<63 - 1
|
||||
|
||||
// TaskState denotes the state of a task.
|
||||
type TaskState int
|
||||
|
||||
|
Reference in New Issue
Block a user