Skip to content

Commit

Permalink
Merge pull request #11 from hyper63/tillathehun0/bug-typeerror-option…
Browse files Browse the repository at this point in the history
…s-10

fix: call on instantiated client #10
  • Loading branch information
TillaTheHun0 authored Oct 18, 2021
2 parents 4f552c0 + 0eb17aa commit 1956730
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export default function RedisCacheAdapter(
config = mergeRight(prevLoad, config);
const client = await options.client.connect(config);
if (options.cluster) {
await options.client.clusterMeet(config.hostname, 6380);
await options.client.clusterNodes();
await client.clusterMeet(config.hostname, config.port);
await client.clusterNodes();
}
// create client
return { client };
Expand Down

0 comments on commit 1956730

Please sign in to comment.