This commit is contained in:
		
							parent
							
								
									38ef5a45f6
								
							
						
					
					
						commit
						2463986e8d
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -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; | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue