Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
andyleiserson committed Dec 17, 2024
1 parent c5cab11 commit 9b63e03
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 21 deletions.
27 changes: 13 additions & 14 deletions ipa-core/src/helpers/transport/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,22 +246,21 @@ impl QueryInputRequest {
}
}

/*
impl From<(Addr<HelperIdentity>, BodyStream)> for QueryInput {
fn from((addr, body): (Addr<HelperIdentity>, BodyStream)) -> Self {
if addr.params.is_empty() {
QueryInput::Inline { addr.query_id, input_stream: body },
} else {
QueryInput::FromUrl { query_id, url },
}
}
}
*/

impl Debug for QueryInput {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
todo!()
//write!(f, "query_inputs[{:?}]", self.query_id)
match self {
QueryInput::Inline { query_id, input_stream: _ } => {
f.debug_struct("QueryInput::Inline")
.field("query_id", query_id)
.finish()
}
QueryInput::FromUrl { query_id, url } => {
f.debug_struct("QueryInput::FromUrl")
.field("query_id", query_id)
.field("url", url)
.finish()
}
}
}
}

Expand Down
7 changes: 0 additions & 7 deletions ipa-core/src/net/http_serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,13 +382,6 @@ pub mod query {
self.0
}
}

// TODO: remove this if unused
impl QueryInputUrl {
pub fn as_ref(&self) -> Option<&Uri> {
self.0.as_ref()
}
}
}

pub mod step {
Expand Down

0 comments on commit 9b63e03

Please sign in to comment.