Skip to content

Commit

Permalink
chore: fix some typos
Browse files Browse the repository at this point in the history
Signed-off-by: damuzhi0810 <rust@before.tech>
  • Loading branch information
damuzhi0810 committed Jan 23, 2025
1 parent b445e8b commit 3c4d03d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const AuthWithUsernamePasswordDeviceIdService =

await kratosAdmin.createIdentity({ createIdentityBody })
} catch (err) {
// we continue if there is 409/Conflit,
// we continue if there is 409/Conflict,
// because it means the identity already exists
if (isAxiosError(err) && err.response?.status !== 409) {
return new UnknownKratosError(
Expand Down
2 changes: 1 addition & 1 deletion core/notifications/src/notification_event/price_changed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub struct PriceChanged {

impl PriceChanged {
const NOTIFICATION_THRESHOLD: ChangePercentage = ChangePercentage(5.0);
#[allow(deprecated)] // recommndation is try_days but Option.unwrap() is not yet const fn
#[allow(deprecated)] // recommendation is try_days but Option.unwrap() is not yet const fn
const COOL_OFF_PERIOD: chrono::Duration = chrono::Duration::days(2);

pub fn should_notify(&self, last_trigger: Option<chrono::DateTime<chrono::Utc>>) -> bool {
Expand Down

0 comments on commit 3c4d03d

Please sign in to comment.