await ack
All checks were successful
/ build-all-services (push) Successful in 9m17s

This commit is contained in:
husky 2025-03-14 18:49:27 -07:00
parent 38ef5a45f6
commit 2463986e8d

View file

@ -99,10 +99,12 @@ async fn main() {
let damping = args.get(2).map(|v| v.parse::<f64>().expect("BAD FP")).unwrap_or(0.45);
warn!("suggesting {} with damping {}", suggestion_site, damping);
nats.publish(VOREBOT_SUGGESTED_SERVICE.to_string(), rmp_serde::to_vec(&CrawlRequest {
let ack = nats.publish(VOREBOT_SUGGESTED_SERVICE.to_string(), rmp_serde::to_vec(&CrawlRequest {
url: suggestion_site.to_string(),
damping,
}).unwrap().into()).await.unwrap();
ack.await.expect("FATAL ERROR");
return;
}