Skip to content

Commit

Permalink
chore(cluster): disable parallel commit of cluster tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
zhang2014 authored and dantengsky committed Nov 15, 2024
1 parent 3ac9376 commit d8b1517
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/query/service/src/clusters/cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ impl ClusterHelper for Cluster {
}

let mut response = HashMap::with_capacity(message.len());
// let mut futures = Vec::with_capacity(message.len());
for (id, message) in message {
let node = get_node(&self.nodes, &id)?;

Expand All @@ -150,26 +149,9 @@ impl ClusterHelper for Cluster {
conn.do_action::<_, Res>(path, node_secret, message, timeout)
.await?,
);
// Ok::<_, ErrorCode>((
// id,
// conn.do_action::<_, Res>(path, node_secret, message, timeout)
// .await?,
// ))
//
// futures.push({
// let config = GlobalConfig::instance();
// let flight_address = node.flight_address.clone();
// let node_secret = node.secret.clone();
//
// async move {
//
// }
// });
}

Ok(response)
// let responses: Vec<(String, Res)> = futures::future::try_join_all(futures).await?;
// Ok(responses.into_iter().collect::<HashMap<String, Res>>())
}
}

Expand Down

0 comments on commit d8b1517

Please sign in to comment.