Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Oct 4, 2024
1 parent 7159860 commit 3842a6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions apollo-router/src/services/external.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ use strum_macros::Display;
use tower::BoxError;
use tower::Service;

use super::subgraph::SubgraphRequestId;
use crate::plugins::telemetry::otel::OpenTelemetrySpanExt;
use crate::plugins::telemetry::reload::prepare_context;
use crate::query_planner::QueryPlan;
use crate::services::router::body::get_body_bytes;
use crate::services::router::body::RouterBody;
use crate::Context;

use super::subgraph::SubgraphRequestId;

pub(crate) const DEFAULT_EXTERNALIZATION_TIMEOUT: Duration = Duration::from_secs(1);

/// Version of our externalised data. Rev this if it changes
Expand Down
6 changes: 6 additions & 0 deletions apollo-router/src/services/subgraph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,12 @@ impl std::ops::Deref for SubgraphRequestId {
}
}

impl Default for SubgraphRequestId {
fn default() -> Self {
Self::new()
}
}

assert_impl_all!(Response: Send);
#[derive(Debug)]
#[non_exhaustive]
Expand Down

0 comments on commit 3842a6a

Please sign in to comment.