fix: handle case where import is polled wayy too fast

This commit is contained in:
beerpiss 2024-06-28 13:34:53 +07:00
parent 9e8bc35479
commit 44104e0562
3 changed files with 6 additions and 6 deletions

2
Cargo.lock generated
View File

@ -934,7 +934,7 @@ checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f"
[[package]] [[package]]
name = "saekawa" name = "saekawa"
version = "0.4.1" version = "0.4.2"
dependencies = [ dependencies = [
"aes", "aes",
"cbc", "cbc",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "saekawa" name = "saekawa"
version = "0.4.1" version = "0.4.2"
edition = "2021" edition = "2021"
license = "0BSD" license = "0BSD"

View File

@ -23,10 +23,10 @@ pub enum ImportResponse {
Completed(ImportDocument), Completed(ImportDocument),
} }
#[derive(Debug, Clone, Serialize, Deserialize, Default)] #[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ImportProgress { pub enum ImportProgress {
description: String, NotStarted(u32),
value: i32, Ongoing { description: String },
} }
#[derive(Debug, Clone, Serialize, Deserialize)] #[derive(Debug, Clone, Serialize, Deserialize)]