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

Get rid of panics in logs #198

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

thinkharderdev
Copy link
Collaborator

@thinkharderdev thinkharderdev commented Mar 4, 2024

VTX-4270

This unwrap can panic if the receiver has been dropped. Shouldn't affect anything important but just pollutes the logs with noise

https://coralogix-dev.slack.com/archives/C04EGDPGK7B/p1709558151827739

@thinkharderdev thinkharderdev requested a review from a team March 4, 2024 13:39
@@ -547,7 +553,11 @@ fn send_fetch_partitions(
join_handles.push(tokio::spawn(async move {
for p in remote_locations.iter() {
let now = Instant::now();
let permit = response_sender.reserve().await.unwrap();
let Ok(permit) = response_sender.reserve().await else {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The same should be added for send_fetch_partitions

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it is I thought?

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.

3 participants