mirror of
https://github.com/SkyfallWasTaken/arcade-monitor.git
synced 2024-11-25 02:13:41 +00:00
Remove leading underscore from used variable
This commit is contained in:
parent
4c34f69a79
commit
142a7fbb52
1 changed files with 2 additions and 2 deletions
|
@ -22,10 +22,10 @@ pub async fn main(req: Request, env: Env, _ctx: worker::Context) -> Result<Respo
|
||||||
}
|
}
|
||||||
|
|
||||||
#[event(scheduled)]
|
#[event(scheduled)]
|
||||||
pub async fn scheduled(_event: ScheduledEvent, env: Env, _ctx: ScheduleContext) {
|
pub async fn scheduled(event: ScheduledEvent, env: Env, _ctx: ScheduleContext) {
|
||||||
run_scrape(env)
|
run_scrape(env)
|
||||||
.await
|
.await
|
||||||
.unwrap_or_else(|_| panic!("failed to run scheduled scrape: {}", _event.schedule()));
|
.unwrap_or_else(|_| panic!("failed to run scheduled scrape: {}", event.schedule()));
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn run_scrape(env: Env) -> Result<String> {
|
async fn run_scrape(env: Env) -> Result<String> {
|
||||||
|
|
Loading…
Reference in a new issue