bring latest develop changes into vorebot-tweaks #6

Merged
husky merged 5 commits from develop into feature/nikocs/vorebot-tweaks 2025-03-16 15:50:03 -07:00
Showing only changes of commit 2463986e8d - Show all commits

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;
}