Skip to content

Commit 823b2af

Browse files
authored
Do not flush redis db
1 parent 9a07ce8 commit 823b2af

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"
@@ -42,10 +41,10 @@ func NewRedisBackend(address, username, password string, db int, opts ...RedisBa
4241
DB: db,
4342
})
4443

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

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

0 commit comments

Comments
 (0)