diff --git a/src/ipc/mod.rs b/src/ipc/mod.rs index 18a2c39..c88421e 100644 --- a/src/ipc/mod.rs +++ b/src/ipc/mod.rs @@ -65,7 +65,7 @@ pub fn handle_daemon_client(mut stream: UnixStream, config: &Arc "help" => { _ = writeln!( stream, - "avaliable commands:\n help\n configcount\n confdump\n hosts ..." + "available commands:\n help\n configcount\n confdump\n hosts ..." ); } "configcount" => { @@ -81,7 +81,7 @@ pub fn handle_daemon_client(mut stream: UnixStream, config: &Arc if let [arg0, args @ ..] = args { match arg0.as_str() { "list" => { - _ = writeln!(stream, "aquiring read lock"); + _ = writeln!(stream, "acquiring read lock"); let rlock = config.hosts.read(); _ = writeln!(stream, "{rlock:#?}"); } @@ -94,7 +94,7 @@ pub fn handle_daemon_client(mut stream: UnixStream, config: &Arc { match value.parse::() { Ok(addr) => { - _ = writeln!(stream, "aquiring write lock"); + _ = writeln!(stream, "acquiring write lock"); let mut wlock = config.hosts.write(); wlock.insert( name.to_string(), @@ -106,7 +106,7 @@ pub fn handle_daemon_client(mut stream: UnixStream, config: &Arc Err(err) => { _ = writeln!( stream, - "err: parsing value as socket addres {err:?}" + "err: parsing value as socket address {err:?}" ); } } @@ -125,7 +125,7 @@ pub fn handle_daemon_client(mut stream: UnixStream, config: &Arc } "delete" => { if let [name] = args { - _ = writeln!(stream, "aquiring write lock"); + _ = writeln!(stream, "acquiring write lock"); let mut wlock = config.hosts.write(); wlock.remove(name); let lock = RwLockWriteGuard::downgrade(wlock); diff --git a/src/main.rs b/src/main.rs index ae8dac8..6bd5849 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,7 +42,7 @@ fn main() -> anyhow::Result<()> { File::create(args.config) .context("failure creating the config file")? .write_all(constants::DEFAULT_CONFIG) - .context("failure writting the contents to the config file")?; + .context("failure writing the contents to the config file")?; return Ok(()); } @@ -117,7 +117,7 @@ pub enum ClientError { // auth headers are just added depending on the ID cookie soo, keep a hashmap of IDs and user // data?? // -// check authethication first of everything as it changes decissions on eveything and give it to fn +// check authentication first of everything as it changes decisions on everything and give it to fn // too // fn(req, Option, (adrr, etc)) -> Action //