Skip to content

Commit

Permalink
fix: connection options wrongly passed to redis transport
Browse files Browse the repository at this point in the history
Related #11
  • Loading branch information
Julien-R44 committed Apr 11, 2024
1 parent 3785f7b commit e92d835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bentocache/src/drivers/redis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function redisBusDriver(
): CreateBusDriverResult {
return {
options,
factory: (config: IoRedisOptions) => new RedisTransport(config, new BinaryEncoder()),
factory: () => new RedisTransport(options.connection, new BinaryEncoder()),
}
}

Expand Down

0 comments on commit e92d835

Please sign in to comment.