Skip to content

Commit

Permalink
fix: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
sisungo committed Apr 20, 2024
1 parent c5aaf18 commit a803dd8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ members = [
"airupfx/airupfx-time",
"airupfx/airupfx-macros",
"airupfx/airupfx-isolator",
"airupfx/airupfx-extensions",
"airupfx/airupfx-extensions",
"extensions/airup-eventsourced",
"extensions/fallback-logger",
]
Expand Down
1 change: 1 addition & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ A standard Airup installation consists of the following files:
This is not subject to be executed directly by the user and is usually placed at `/usr/libexec/airup/fallback-logger`.
- `libairup_sdk.so` OR `libairup_sdk.dylib`: The Airup SDK for C, in dynamic library.
- \[`docs/resources/airup-eventsourced.airs`\]: Service manifest file for the `airup-eventsourced` service.
- \[`docs/resources/airup-fallback-logger.airs`\]: Service manifest file for the `fallback-logger` service.
- \[`docs/resources/airupd.airs`\]: Stub service manifest file for the `airupd` service.
- \[`docs/resources/selinux/airup.te`\]: SELinux policy for Airup.

Expand Down
2 changes: 1 addition & 1 deletion extensions/airup-eventsourced/src/timer/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl LinePiperCallback for LogCallback {
) -> Pin<Box<dyn for<'b> Future<Output = ()> + Send + 'a>> {
Box::pin(async move {
crate::app::airup_eventsourced()
.append_log(&self.name, self.module, &msg)
.append_log(&self.name, self.module, msg)
.await;
})
}
Expand Down
4 changes: 2 additions & 2 deletions extensions/fallback-logger/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fn dir_chain_logs() -> DirChain<'static> {
}

fn open_subject_append(subject: &str) -> std::io::Result<std::fs::File> {
let path = dir_chain_logs().find_or_create(&format!("{subject}.fallback_logger.json"))?;
let path = dir_chain_logs().find_or_create(format!("{subject}.fallback_logger.json"))?;

std::fs::File::options()
.append(true)
Expand All @@ -80,7 +80,7 @@ fn open_subject_append(subject: &str) -> std::io::Result<std::fs::File> {

fn open_subject_read(subject: &str) -> std::io::Result<std::fs::File> {
let path = dir_chain_logs()
.find(&format!("{subject}.fallback_logger.json"))
.find(format!("{subject}.fallback_logger.json"))
.ok_or_else(|| std::io::Error::from(std::io::ErrorKind::NotFound))?;

std::fs::File::open(path)
Expand Down

0 comments on commit a803dd8

Please sign in to comment.