Skip to content

Commit 61ef88c

Browse files
authored
Don't flush database
1 parent dd6ff6d commit 61ef88c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

backend/redis/redis.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package redis
22

33
import (
4-
"context"
54
"time"
65

76
"github.com/cschleiden/go-workflows/backend"
@@ -41,10 +40,10 @@ func NewRedisBackend(address, username, password string, db int, opts ...RedisBa
4140
DB: db,
4241
})
4342

44-
// TODO: Only for dev
45-
if err := client.FlushDB(context.Background()).Err(); err != nil {
46-
panic(err)
47-
}
43+
// // TODO: Only for dev
44+
// if err := client.FlushDB(context.Background()).Err(); err != nil {
45+
// panic(err)
46+
// }
4847

4948
workflowQueue, err := taskqueue.New[workflowTaskData](client, "workflows")
5049
if err != nil {

0 commit comments

Comments
 (0)