Skip to content

Commit

Permalink
Remove unused impl block
Browse files Browse the repository at this point in the history
  • Loading branch information
Lun4m committed Jun 24, 2024
1 parent 162c062 commit 3ce2acc
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions ingestion/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,18 +86,6 @@ pub struct Datum {
value: f32,
}

// Only used in tests
#[doc(hidden)]
impl Datum {
pub fn new(timeseries_id: i32, timestamp: DateTime<Utc>, value: f32) -> Self {
Datum {
timeseries_id,
timestamp,
value,
}
}
}

pub type Data = Vec<Datum>;

pub async fn insert_data(data: Data, conn: &mut PooledPgConn<'_>) -> Result<(), Error> {
Expand Down

0 comments on commit 3ce2acc

Please sign in to comment.