-
Notifications
You must be signed in to change notification settings - Fork 1
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
bugfix: pass meta to existsIndexTemplate method from OS API #2
bugfix: pass meta to existsIndexTemplate method from OS API #2
Conversation
Warning Rate limit exceeded@jaredbarranco has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 23 minutes and 38 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
WalkthroughThe changes enhance the connection management and control flow of the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
c8c3354
to
a35a219
Compare
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.
Caution
Inline review comments failed to post. This is likely due to GitHub's limits when posting large numbers of comments.
Actionable comments posted: 1
🛑 Comments failed to post (1)
bulk_writer.js (1)
27-29:
⚠️ Potential issueRisk of setting
connected
to true in thefinally
block
Because.finally()
executes whethercheckEsConnection
succeeds or fails, this assignment may incorrectly setthis.connected
to true on failed connection attempts. Consider settingthis.connected
to true only upon successful connection, possibly in the.then()
block ofcheckEsConnection
.this.checkEsConnection(this.retryLimit) - .finally(() => { + .then(() => { this.connected = true; - }); + }) + .catch(() => { + this.connected = false; + });📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.this.checkEsConnection(this.retryLimit) .then(() => { this.connected = true; }) .catch(() => { this.connected = false; });
a35a219
to
7a53380
Compare
Signed-off-by: barrancojared <[email protected]> Signed-off-by: barrancojared <[email protected]>
7a53380
to
88ef63e
Compare
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.
LGTM. Thank you for contributing @jaredbarranco.
I'll deploy new version as soon as possible.
Please see the issue from source project: vanthome/winston-elasticsearch#203
This is effectively a copy/paste of the solution proposed in PR: vanthome/winston-elasticsearch#235
Summary by CodeRabbit