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]]
name = "saekawa"
version = "0.4.1"
version = "0.4.2"
dependencies = [
"aes",
"cbc",

View File

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

View File

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