Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small typos #24

Merged
merged 2 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/directip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
//!
Expand Down Expand Up @@ -132,7 +132,7 @@ fn handle_stream(stream: TcpStream, storage: Arc<Mutex<dyn Storage>>) {
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(),
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
Box::new(
std::fs::OpenOptions::new()
.create(true)
.write(true)

Check failure on line 71 in src/main.rs

View workflow job for this annotation

GitHub Actions / lint

unnecessary use of `.write(true)` because there is `.append(true)`
gadomski marked this conversation as resolved.
Show resolved Hide resolved
.append(true)
.open(&self.path)
.unwrap(),
Expand Down Expand Up @@ -125,7 +125,7 @@
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);
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/mo/session_status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/storage/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading