diff --git a/src/iam/signin.rs b/src/iam/signin.rs index 79066559..48b0e6ce 100644 --- a/src/iam/signin.rs +++ b/src/iam/signin.rs @@ -144,7 +144,7 @@ pub async fn sc( id: Some(rid.to_raw()), ..Claims::default() }; - // Set the authentication on the sesssion + // Set the authentication on the session session.ns = Some(ns.to_owned()); session.db = Some(db.to_owned()); session.sc = Some(sc.to_owned()); @@ -206,7 +206,7 @@ pub async fn db( id: Some(user), ..Claims::default() }; - // Set the authentication on the sesssion + // Set the authentication on the session session.au = Arc::new(Auth::Db(ns, db)); // Create the authentication token match encode(&*HEADER, &val, &key) { @@ -255,7 +255,7 @@ pub async fn ns( id: Some(user), ..Claims::default() }; - // Set the authentication on the sesssion + // Set the authentication on the session session.au = Arc::new(Auth::Ns(ns)); // Create the authentication token match encode(&*HEADER, &val, &key) { diff --git a/src/iam/signup.rs b/src/iam/signup.rs index 4f3b7ba6..209f09fe 100644 --- a/src/iam/signup.rs +++ b/src/iam/signup.rs @@ -79,7 +79,7 @@ pub async fn sc( id: Some(rid.to_raw()), ..Claims::default() }; - // Set the authentication on the sesssion + // Set the authentication on the session session.ns = Some(ns.to_owned()); session.db = Some(db.to_owned()); session.sc = Some(sc.to_owned()); diff --git a/src/net/health.rs b/src/net/health.rs index 9beb2f12..943a10f3 100644 --- a/src/net/health.rs +++ b/src/net/health.rs @@ -13,7 +13,7 @@ async fn handler() -> Result { match db.transaction(false, false).await { // The transaction failed to start Err(_) => Err(warp::reject::custom(Error::InvalidStorage)), - // The transaction was successfull + // The transaction was successful Ok(mut tx) => { // Cancel the transaction let _ = tx.cancel().await;