Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions examples/rio_triage_await/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ mod github;

use extractor::Extractor;

/// FIXME: this generate a compiler crash if called inside the rio runtime
async fn run(extractor: &impl extractor::Extractor<Output = String>) -> Result<(), surf::Error> {
let content = extractor.search_new().await?;
info!("{}", content);
Expand All @@ -22,13 +21,8 @@ fn main() {

let github = github::GithubExtractor::new();
rio::block_on(async move {
let handle_service = github.clone();
async move {
if let Err(e) = handle_service.search_new().await {
debug!("error received {}", e);
}
}
.await;
run(&github).await.unwrap();
});

rio::wait();
}