Skip to content

Commit

Permalink
rename isolationPoolOptions to poolOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
gkorland committed Jul 30, 2024
1 parent c8ffafd commit 0fa33da
Show file tree
Hide file tree
Showing 3 changed files with 287 additions and 1 deletion.
280 changes: 280 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
],
"devDependencies": {
"@tsconfig/node14": "^14.1.0",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.28",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.18.0",
Expand Down
7 changes: 6 additions & 1 deletion src/falkordb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export interface FalkorDBOptions {
/**
* Connection pool options
*/
isolationPoolOptions?: PoolOptions;
poolOptions?: PoolOptions;
}

function extractDetails(masters: Array<Array<string>>) {
Expand Down Expand Up @@ -184,6 +184,11 @@ export default class FalkorDB extends EventEmitter {
redisOption.url = redisOption.url.replace('falkor', 'redis');
}

// Just copy the pool options to the isolation pool options as expected by the redis client
if(options?.poolOptions){
redisOption.isolationPoolOptions = options.poolOptions;
}

redisOption.modules = {
falkordb: commands
}
Expand Down

0 comments on commit 0fa33da

Please sign in to comment.