From 3842a6aaa795acc33bcdf37b3825b3906bc6b799 Mon Sep 17 00:00:00 2001 From: Geoffroy Couprie Date: Fri, 4 Oct 2024 17:01:15 +0200 Subject: [PATCH] lint --- apollo-router/src/services/external.rs | 3 +-- apollo-router/src/services/subgraph.rs | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/apollo-router/src/services/external.rs b/apollo-router/src/services/external.rs index 7876d0db46..c356ddd39c 100644 --- a/apollo-router/src/services/external.rs +++ b/apollo-router/src/services/external.rs @@ -20,6 +20,7 @@ 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; @@ -27,8 +28,6 @@ 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 diff --git a/apollo-router/src/services/subgraph.rs b/apollo-router/src/services/subgraph.rs index 7fb489a07b..2c9dca0017 100644 --- a/apollo-router/src/services/subgraph.rs +++ b/apollo-router/src/services/subgraph.rs @@ -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]