chore(heal): remove unused global response broadcast (#1991)

This commit is contained in:
weisd
2026-02-27 14:12:03 +08:00
committed by GitHub
parent 368bba3345
commit 68cc0a5df7
3 changed files with 42 additions and 105 deletions
+1 -8
View File
@@ -20,7 +20,6 @@ use crate::heal::{
use crate::{Error, Result};
use rustfs_common::heal_channel::{
HealChannelCommand, HealChannelPriority, HealChannelReceiver, HealChannelRequest, HealChannelResponse, HealScanMode,
publish_heal_response,
};
use std::sync::Arc;
use tokio::sync::mpsc;
@@ -227,15 +226,9 @@ impl HealChannelProcessor {
}
fn publish_response(&self, response: HealChannelResponse) {
// Try to send to local channel first, but don't block broadcast on failure
if let Err(e) = self.response_sender.send(response.clone()) {
if let Err(e) = self.response_sender.send(response) {
error!("Failed to enqueue heal response locally: {}", e);
}
// Always attempt to broadcast, even if local send failed
// Use the original response for broadcast; local send uses a clone
if let Err(e) = publish_heal_response(response) {
error!("Failed to broadcast heal response: {}", e);
}
}
/// Get response sender for external use