-
Notifications
You must be signed in to change notification settings - Fork 113
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
chore: update retry loop #2032
base: main
Are you sure you want to change the base?
chore: update retry loop #2032
Conversation
Signed-off-by: Sidhant Kohli <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2032 +/- ##
==========================================
+ Coverage 61.78% 61.95% +0.17%
==========================================
Files 318 318
Lines 28977 29075 +98
==========================================
+ Hits 17902 18013 +111
+ Misses 10126 10105 -21
- Partials 949 957 +8 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Sidhant Kohli <[email protected]>
|
|
|
@@ -223,50 +224,52 @@ impl Forwarder { | |||
// we will overwrite this vec with failed messages and will keep retrying. | |||
let mut messages_to_send = messages; | |||
|
|||
// check what is the failure strategy in the config | |||
let strategy = config().sink_retry_on_fail_strategy.clone(); |
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.
Why not clone in new
since it is literally one time and can be reused?
&mut fallback_msgs, | ||
&mut messages_to_send, | ||
strategy, | ||
self.common_labels.clone(), |
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.
Why not pass reference?
No description provided.