Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apollo-router/src/services/connect.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![allow(missing_docs)] // FIXME
//! Connect service request and response types.

use std::sync::Arc;

Expand Down
3 changes: 2 additions & 1 deletion apollo-router/src/services/connector_service.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Tower fetcher for fetch node execution.
//! Tower service for connectors.

use std::collections::HashMap;
use std::sync::Arc;
Expand Down Expand Up @@ -47,6 +47,7 @@ pub(crate) const APOLLO_CONNECTOR_SOURCE_NAME: Key =
pub(crate) const APOLLO_CONNECTOR_SOURCE_DETAIL: Key =
Key::from_static_str("apollo.connector.source.detail");

/// A service for executing connector requests.
#[derive(Clone)]
pub(crate) struct ConnectorService {
pub(crate) http_service_factory: Arc<IndexMap<String, HttpClientServiceFactory>>,
Expand Down
2 changes: 1 addition & 1 deletion apollo-router/src/services/fetch.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![allow(missing_docs)] // FIXME
//! Fetch request and response types.

use std::sync::Arc;

Expand Down
2 changes: 2 additions & 0 deletions apollo-router/src/services/fetch_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ use crate::services::FetchResponse;
use crate::services::SubgraphServiceFactory;
use crate::spec::Schema;

/// The fetch service delegates to either the subgraph service or connector service depending
/// on whether connectors are present in the subgraph.
#[derive(Clone)]
pub(crate) struct FetchService {
pub(crate) subgraph_service_factory: Arc<SubgraphServiceFactory>,
Expand Down