-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
👍 |
@@ -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.') |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reply. Fixed.
# [4.8.0](v4.7.0...v4.8.0) (2019-03-12) ### Features * nat support for sentinel connector ([#799](#799)) ([335b3e2](335b3e2))
# [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))
No description provided.