Skip to content

Commit

Permalink
initialize redis
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadman97 committed Apr 26, 2024
1 parent 527b76b commit 4d891ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ func (f *FilesystemClient) SetupHTTPSListener(r chi.Router) {
}

func NewFSClient(_ context.Context, origin, fsRoot string) (*FilesystemClient, error) {
return &FilesystemClient{origin: origin, fsRoot: fsRoot}, nil
return &FilesystemClient{origin: origin, fsRoot: fsRoot, redis: hredis.NewClient()}, nil
}

type S3Client struct {
Expand All @@ -500,6 +500,7 @@ func NewS3Client(ctx context.Context) (*S3Client, error) {
S3ClientEast2: clientEast2,
S3PresignClient: s3.NewPresignClient(clientEast2),
URLSigner: getURLSigner(ctx),
Redis: hredis.NewClient(),
}, nil
}

Expand Down

0 comments on commit 4d891ec

Please sign in to comment.