Skip to content

Commit

Permalink
fix: small app log improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanti committed Jun 25, 2024
1 parent 872dbde commit 330b0a9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["crates/*"]
resolver = "2"

[workspace.package]
version = "0.4.0"
version = "0.4.1"
edition = "2021"
publish = false
authors = ["FastEdge Development Team"]
Expand Down
2 changes: 0 additions & 2 deletions crates/runtime/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ pub enum Log {
None,
#[cfg(feature = "kafka_log")]
Kafka,
#[cfg(feature = "file_log")]
File { name: Option<String> },
}

#[derive(Debug, Clone, PartialEq)]
Expand Down
2 changes: 1 addition & 1 deletion crates/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ pub trait ExecutorCache {

pub trait Router: Send + Sync {
fn lookup_by_name(&self, name: &str) -> impl std::future::Future<Output = Option<App>> + Send;
fn lookup_by_id(&self, id: u64) -> impl std::future::Future<Output = Option<App>> + Send;
fn lookup_by_id(&self, id: u64) -> impl std::future::Future<Output = Option<(SmolStr, App)>> + Send;
}

pub fn componentize_if_necessary(buffer: &[u8]) -> anyhow::Result<Cow<[u8]>> {
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ impl Router for CliContext {
self.app.to_owned()
}

async fn lookup_by_id(&self, _id: u64) -> Option<App> {
async fn lookup_by_id(&self, _id: u64) -> Option<(SmolStr, App)> {
unreachable!()
}
}
Expand Down

0 comments on commit 330b0a9

Please sign in to comment.