Fix tracing span, using official mwbot crate
This commit is contained in:
@@ -25,7 +25,7 @@ async fn update_all_teachers(bot: &Bot) {
|
||||
tracing::info!("Updates all pages");
|
||||
}
|
||||
|
||||
#[tracing::instrument(skip_all, fields(index))]
|
||||
#[tracing::instrument(skip(page, wait_duration))]
|
||||
async fn process_page(wait_duration: Duration, index: u32, page: mwbot::Page) {
|
||||
tracing::info!("Next up");
|
||||
sleep(wait_duration).await;
|
||||
|
||||
Reference in New Issue
Block a user