Skip to content

Commit

Permalink
timer
Browse files Browse the repository at this point in the history
  • Loading branch information
drbeefsupreme committed Jan 15, 2025
1 parent 822d358 commit 9a29a86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crown/src/drivers/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::time::Duration;
use sword::noun::{D, T};
use tokio::time;

pub fn make_timer_driver(interval_secs: u64) -> IODriverFn {
pub fn timer(interval_secs: u64) -> IODriverFn {
make_driver(move |handle| async move {
let mut timer_interval = time::interval(Duration::from_secs(interval_secs));

Expand Down
2 changes: 1 addition & 1 deletion crown/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub use drivers::http::http as http_driver;
pub use drivers::markdown::markdown as markdown_driver;
pub use drivers::npc::{npc_client as npc_client_driver, npc_listener as npc_listener_driver};
pub use drivers::one_punch::one_punch_man as one_punch_driver;
pub use drivers::timer::make_timer_driver as timer_driver;
pub use drivers::timer::timer as timer_driver;

use std::path::PathBuf;

Expand Down

0 comments on commit 9a29a86

Please sign in to comment.