Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
karencfv committed Dec 5, 2024
1 parent bcc51cc commit a44c7b6
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions clickhouse-admin/types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1196,21 +1196,6 @@ pub enum Timestamp {
Unix(String),
}

// TODO: This doesn't seem to be working
//impl FromStr for Timestamp {
// type Err = Error;
//
// fn from_str(s: &str) -> Result<Self, Self::Err> {
// if let Ok(utc) = s.parse() {
// Ok(Timestamp::Utc(utc))
// } else if let Some(_) = DateTime::from_timestamp(s.parse::<i64>().expect(&format!("{s} is not a valid timestamp")), 0) {
// Ok(Timestamp::Unix(s.to_string()))
// } else {
// bail!("{s} is not a valid timestamp")
// }
// }
//}

/// Retrieved time series from the internal `system` database.
#[derive(Debug, Serialize, Deserialize, JsonSchema, PartialEq)]
#[serde(rename_all = "snake_case")]
Expand Down

0 comments on commit a44c7b6

Please sign in to comment.