Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nat support for sentinel connector #799

Merged
merged 5 commits into from
Mar 12, 2019
Merged

Conversation

shults
Copy link
Contributor

@shults shults commented Feb 19, 2019

No description provided.

@worotyns
Copy link

👍

@@ -46,6 +48,10 @@ export default class SentinelConnector extends AbstractConnector {
throw new Error('Requires the name of master.')
}

if (this.options.natMap && Object.keys(this.options.natMap).length === 0) {
throw new Error('Empty natMap is not allowed.')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should allow empty natMap ({}) to keep the same behavior as one in cluster: https://github.com/luin/ioredis/blob/master/lib/cluster/index.ts#L428.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for reply. Fixed.

@luin luin merged commit 335b3e2 into redis:master Mar 12, 2019
ioredis-robot pushed a commit that referenced this pull request Mar 12, 2019
# [4.8.0](v4.7.0...v4.8.0) (2019-03-12)

### Features

* nat support for sentinel connector ([#799](#799)) ([335b3e2](335b3e2))
janus-dev87 added a commit to janus-dev87/ioredis-work that referenced this pull request Mar 1, 2024
# [4.8.0](redis/ioredis@v4.7.0...v4.8.0) (2019-03-12)

### Features

* nat support for sentinel connector ([#799](redis/ioredis#799)) ([335b3e2](redis/ioredis@335b3e2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants