Skip to content

Commit ddda977

Browse files
committed
enable redis connection return
1 parent d477103 commit ddda977

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

backend/cmd/srv/main.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,9 @@ func run(ctx context.Context) error {
7474
// If Redis is not running, error case is taken instead
7575
status, err := rdb.Ping(ctx).Result()
7676
if err != nil {
77-
// return fmt.Errorf("failed to ping redis got error: %v", err)
78-
slog.Error("failed to connect redis - JUST LOGGING FOR NOW!", slog.Any("err", err))
77+
return fmt.Errorf("failed to ping redis got error: %v", err)
7978
}
80-
slog.Info("redis", slog.Any("redis status", status))
79+
slog.Info("redis", slog.Any("status", status))
8180

8281
// init stores
8382
accountStore := repository.NewAccountDB(db)

backend/cmd/xsrv/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func run(ctx context.Context) error {
7676
if err != nil {
7777
return fmt.Errorf("failed to ping redis got error: %v", err)
7878
}
79-
slog.Info("redis", slog.Any("redis status", status))
79+
slog.Info("redis", slog.Any("status", status))
8080

8181
// init respective stores
8282
workspaceStore := repository.NewWorkspaceDB(db)

0 commit comments

Comments
 (0)