2
0
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:
Ken Hibino
2021-12-19 06:58:12 -08:00
parent 82d18e3d91
commit 1ddb2f7bce
2 changed files with 5 additions and 10 deletions

View File

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