Skip to content

Commit

Permalink
Remove unused code in createRedisClient function
Browse files Browse the repository at this point in the history
  • Loading branch information
Digital39999 committed Sep 14, 2024
1 parent fc4c88d commit 440474f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,5 @@ func createRedisClient(redisURL string) (*redis.Client, error) {
}

fmt.Println("Connected to Redis.")

_, err = client.ConfigSet(ctx, "notify-keyspace-events", "Ex").Result()
if err != nil {
fmt.Println("Failed to set notify-keyspace-events:", err)
return nil, err
}

return client, nil
}

0 comments on commit 440474f

Please sign in to comment.