otto 9 months ago
parent
commit
9d71321ab8
  1. 2
      task/task.go

2
task/task.go

@ -50,7 +50,7 @@ func NewTask() {
func task(start, end int64) error {
redisClient := NewRedis()
defer func() { redisClient.Close() }()
//defer func() { redisClient.Close() }()
result, err := redisClient.ZRangeWithScores(context.Background(), hotKey, start, end).Result()
if err != nil {
return err

Loading…
Cancel
Save