diff --git a/src/directip.rs b/src/directip.rs index f0f7a1f4..45422be9 100644 --- a/src/directip.rs +++ b/src/directip.rs @@ -2,7 +2,7 @@ //! //! Iridium `DirectIP` is a service provided by the Iridium company. New Mobile //! Originated messages are forwarded from the Iridium servers to a configured -//! IP address. The Iridum service attempts to initate a TCP connection to port +//! IP address. The Iridium service attempts to initiate a TCP connection to port //! 10800 at the specified IP. If the connection is successful, the MO message //! is transmitted, then the connection is closed. //! @@ -132,7 +132,7 @@ fn handle_stream(stream: TcpStream, storage: Arc>) { let message = match Message::read_from(stream) { Ok(message) => { info!( - "Recieved message from IMEI {} with MOMN {} and {} byte payload", + "Received message from IMEI {} with MOMN {} and {} byte payload", message.imei(), message.momsn(), message.payload().len(), diff --git a/src/main.rs b/src/main.rs index e37e3d17..f5fb48ed 100644 --- a/src/main.rs +++ b/src/main.rs @@ -68,7 +68,6 @@ impl + Send + Sync> log::Log for Logger

{ Box::new( std::fs::OpenOptions::new() .create(true) - .write(true) .append(true) .open(&self.path) .unwrap(), @@ -125,7 +124,7 @@ fn main() { Ok(ref message) => match str::from_utf8(message.payload()) { Ok(content) => println!("{}", content), Err(err) => { - println!("ERROR: Unable to parse paylode as UTF-8: {}", err); + println!("ERROR: Unable to parse payload as UTF-8: {}", err); process::exit(1); } }, diff --git a/src/mo/session_status.rs b/src/mo/session_status.rs index 2c5cef68..6f5943d5 100644 --- a/src/mo/session_status.rs +++ b/src/mo/session_status.rs @@ -18,7 +18,7 @@ pub enum SessionStatus { OkLocationUnacceptableQuality = 2, /// The SBD session timed out before session completion. Timeout = 10, - /// The MO message being transferred by the IMEI is too large to be transerred within a single + /// The MO message being transferred by the IMEI is too large to be transferred within a single /// SBD session. MobileOriginatedTooLarge = 12, /// An RF link loss ocurred during the SBD session. diff --git a/src/storage/filesystem.rs b/src/storage/filesystem.rs index 8872e631..1781ddfc 100644 --- a/src/storage/filesystem.rs +++ b/src/storage/filesystem.rs @@ -11,7 +11,7 @@ use crate::{mo::Message, storage, Error}; const SBD_EXTENSION: &str = "sbd"; -/// A structure for managing storing and retriving SBD messages on a filesystem. +/// A structure for managing storing and retrieving SBD messages on a filesystem. /// /// Messages are stored in a directory hierarchy under a single root directory. /// Message storage and retrieval are managed by a `Storage` object, which is