diff --git a/examples/error_handling.rs b/examples/error_handling.rs index 561bef6..9eda6ea 100644 --- a/examples/error_handling.rs +++ b/examples/error_handling.rs @@ -3,8 +3,8 @@ use bevy::{ prelude::*, }; use bevy_key_rotation::{ - AuthProvider, KeyRotationPlugin, KeyRotationSettings, Keystore, - KeystoreState, StartKeyRotationExt, TokenRotationError, + AuthProvider, KeyRotationPlugin, KeyRotationSettings, Keystore, KeystoreState, + StartKeyRotationExt, TokenRotationError, }; use std::sync::Arc; @@ -29,10 +29,7 @@ impl AuthProvider for MyAuthProvider { + bevy_key_rotation::Duration::from_secs(60), }) } - async fn refresh( - &self, - _keystore: Keystore, - ) -> Result { + async fn refresh(&self, _keystore: Keystore) -> Result { #[derive(thiserror::Error, Default, Debug)] #[error("This fails on purpose!")] struct MyError; @@ -40,11 +37,7 @@ impl AuthProvider for MyAuthProvider { } } -fn status_check( - time: Res