Skip to content

Commit

Permalink
rename database::comparison to database::metric
Browse files Browse the repository at this point in the history
  • Loading branch information
s7tya committed Aug 5, 2024
1 parent d057abb commit 72658ac
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion database/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use std::ops::{Add, Sub};
use std::sync::Arc;
use std::time::Duration;

pub mod comparison;
pub mod interpolate;
pub mod metric;
pub mod pool;
pub mod selector;

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion database/src/selector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ use std::{
use async_trait::async_trait;

use crate::{
comparison::Metric, interpolate::Interpolate, ArtifactId, ArtifactIdIter, Benchmark,
interpolate::Interpolate, metric::Metric, ArtifactId, ArtifactIdIter, Benchmark,
CodegenBackend, Connection, Index, Lookup, Profile, Scenario,
};

Expand Down
4 changes: 2 additions & 2 deletions site/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ pub mod bootstrap {
pub mod comparison {
use crate::benchmark_metadata::ProfileMetadata;
use collector::Bound;
use database::{comparison::Metric, Date};
use database::{metric::Metric, Date};
use serde::{Deserialize, Serialize};
use std::collections::HashMap;

Expand Down Expand Up @@ -595,7 +595,7 @@ pub mod github {

pub mod triage {
use collector::Bound;
use database::comparison::Metric;
use database::metric::Metric;
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
Expand Down
2 changes: 1 addition & 1 deletion site/src/comparison.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::load::SiteCtxt;
use collector::compile::benchmark::category::Category;
use collector::Bound;
use database::{
comparison::Metric,
metric::Metric,
selector::{self, BenchmarkQuery, CompileBenchmarkQuery, RuntimeBenchmarkQuery, TestCase},
};
use database::{ArtifactId, Benchmark, Lookup, Profile, Scenario};
Expand Down
2 changes: 1 addition & 1 deletion site/src/github/comparison_summary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::comparison::{
};
use crate::load::SiteCtxt;

use database::{comparison::Metric, ArtifactId, QueuedCommit};
use database::{metric::Metric, ArtifactId, QueuedCommit};

use crate::github::{COMMENT_MARK_ROLLUP, COMMENT_MARK_TEMPORARY, RUST_REPO_GITHUB_API_URL};
use humansize::BINARY;
Expand Down
2 changes: 1 addition & 1 deletion site/src/request_handlers/dashboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::api::{dashboard, ServerResult};
use crate::benchmark_metadata::get_stable_benchmark_names;
use crate::load::SiteCtxt;
use database::selector;
use database::{self, comparison::Metric, ArtifactId, Profile, Scenario};
use database::{self, metric::Metric, ArtifactId, Profile, Scenario};

pub async fn handle_dashboard(ctxt: Arc<SiteCtxt>) -> ServerResult<dashboard::Response> {
let index = ctxt.index.load();
Expand Down
2 changes: 1 addition & 1 deletion site/src/request_handlers/self_profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::time::Instant;
use bytes::Buf;
use database::selector;
use database::ArtifactId;
use database::{comparison::Metric, CommitType};
use database::{metric::Metric, CommitType};
use headers::{ContentType, Header};
use hyper::StatusCode;

Expand Down

0 comments on commit 72658ac

Please sign in to comment.