Skip to content

Commit e657a24

Browse files
committed
Rename graph::NewResponse to graph::Response
1 parent d108ce6 commit e657a24

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

site/src/api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pub mod graph {
7474
}
7575

7676
#[derive(Debug, PartialEq, Clone, Serialize)]
77-
pub struct NewResponse {
77+
pub struct Response {
7878
// (UTC timestamp in seconds, sha)
7979
pub commits: Vec<(i64, String)>,
8080
pub benchmarks: HashMap<String, HashMap<database::Profile, HashMap<String, Series>>>,

site/src/load.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ pub struct SiteCtxt {
7979
/// Site configuration
8080
pub config: Config,
8181
/// Cached site landing page
82-
pub landing_page: ArcSwap<Option<Arc<crate::api::graph::NewResponse>>>,
82+
pub landing_page: ArcSwap<Option<Arc<crate::api::graph::Response>>>,
8383
/// Index of various common queries
8484
pub index: ArcSwap<crate::db::Index>,
8585
/// Database connection pool

site/src/request_handlers/graph.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use crate::selector::{self, PathComponent, Tag};
1212
pub async fn handle_graph(
1313
body: graph::Request,
1414
ctxt: &SiteCtxt,
15-
) -> ServerResult<Arc<graph::NewResponse>> {
15+
) -> ServerResult<Arc<graph::Response>> {
1616
log::info!("handle_graph({:?})", body);
1717

1818
let is_default_query = body
@@ -65,7 +65,7 @@ pub async fn handle_graph(
6565
benchmarks.insert(benchmark_.clone(), by_profile);
6666
}
6767

68-
let resp = Arc::new(graph::NewResponse {
68+
let resp = Arc::new(graph::Response {
6969
commits: commits
7070
.into_iter()
7171
.map(|c| match c {

0 commit comments

Comments
 (0)