Core refactoring

This commit is contained in:
mdecimus
2024-09-26 14:49:46 +02:00
parent 24967c1e86
commit ce8182ae07
267 changed files with 5886 additions and 4461 deletions

View File

@@ -87,3 +87,13 @@ impl Default for SnowflakeIdGenerator {
Self::new()
}
}
impl Clone for SnowflakeIdGenerator {
fn clone(&self) -> Self {
Self {
epoch: self.epoch,
node_id: self.node_id,
sequence: 0.into(),
}
}
}