Skip to content

Commit 72658ac

Browse files
committed
rename database::comparison to database::metric
1 parent d057abb commit 72658ac

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

database/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ use std::ops::{Add, Sub};
99
use std::sync::Arc;
1010
use std::time::Duration;
1111

12-
pub mod comparison;
1312
pub mod interpolate;
13+
pub mod metric;
1414
pub mod pool;
1515
pub mod selector;
1616

File renamed without changes.

database/src/selector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use std::{
3030
use async_trait::async_trait;
3131

3232
use crate::{
33-
comparison::Metric, interpolate::Interpolate, ArtifactId, ArtifactIdIter, Benchmark,
33+
interpolate::Interpolate, metric::Metric, ArtifactId, ArtifactIdIter, Benchmark,
3434
CodegenBackend, Connection, Index, Lookup, Profile, Scenario,
3535
};
3636

site/src/api.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ pub mod bootstrap {
253253
pub mod comparison {
254254
use crate::benchmark_metadata::ProfileMetadata;
255255
use collector::Bound;
256-
use database::{comparison::Metric, Date};
256+
use database::{metric::Metric, Date};
257257
use serde::{Deserialize, Serialize};
258258
use std::collections::HashMap;
259259

@@ -595,7 +595,7 @@ pub mod github {
595595

596596
pub mod triage {
597597
use collector::Bound;
598-
use database::comparison::Metric;
598+
use database::metric::Metric;
599599
use serde::{Deserialize, Serialize};
600600

601601
#[derive(Debug, Clone, Serialize, Deserialize)]

site/src/comparison.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use crate::load::SiteCtxt;
99
use collector::compile::benchmark::category::Category;
1010
use collector::Bound;
1111
use database::{
12-
comparison::Metric,
12+
metric::Metric,
1313
selector::{self, BenchmarkQuery, CompileBenchmarkQuery, RuntimeBenchmarkQuery, TestCase},
1414
};
1515
use database::{ArtifactId, Benchmark, Lookup, Profile, Scenario};

site/src/github/comparison_summary.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::comparison::{
44
};
55
use crate::load::SiteCtxt;
66

7-
use database::{comparison::Metric, ArtifactId, QueuedCommit};
7+
use database::{metric::Metric, ArtifactId, QueuedCommit};
88

99
use crate::github::{COMMENT_MARK_ROLLUP, COMMENT_MARK_TEMPORARY, RUST_REPO_GITHUB_API_URL};
1010
use humansize::BINARY;

site/src/request_handlers/dashboard.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::api::{dashboard, ServerResult};
66
use crate::benchmark_metadata::get_stable_benchmark_names;
77
use crate::load::SiteCtxt;
88
use database::selector;
9-
use database::{self, comparison::Metric, ArtifactId, Profile, Scenario};
9+
use database::{self, metric::Metric, ArtifactId, Profile, Scenario};
1010

1111
pub async fn handle_dashboard(ctxt: Arc<SiteCtxt>) -> ServerResult<dashboard::Response> {
1212
let index = ctxt.index.load();

site/src/request_handlers/self_profile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::time::Instant;
66
use bytes::Buf;
77
use database::selector;
88
use database::ArtifactId;
9-
use database::{comparison::Metric, CommitType};
9+
use database::{metric::Metric, CommitType};
1010
use headers::{ContentType, Header};
1111
use hyper::StatusCode;
1212

0 commit comments

Comments
 (0)