mirror of
https://github.com/chatmail/core.git
synced 2026-05-22 16:26:31 +03:00
typo: CollectionReceived (#4189)
This commit is contained in:
@@ -468,7 +468,7 @@ async fn transfer_from_provider(
|
|||||||
opts,
|
opts,
|
||||||
on_connected,
|
on_connected,
|
||||||
|collection| {
|
|collection| {
|
||||||
context.emit_event(ReceiveProgress::CollectionRecieved.into());
|
context.emit_event(ReceiveProgress::CollectionReceived.into());
|
||||||
progress.set_total(collection.total_blobs_size());
|
progress.set_total(collection.total_blobs_size());
|
||||||
async { Ok(()) }
|
async { Ok(()) }
|
||||||
},
|
},
|
||||||
@@ -579,7 +579,7 @@ fn spawn_progress_proxy(context: Context, mut rx: broadcast::Receiver<u16>) {
|
|||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
enum ReceiveProgress {
|
enum ReceiveProgress {
|
||||||
Connected,
|
Connected,
|
||||||
CollectionRecieved,
|
CollectionReceived,
|
||||||
/// A value between 0 and 85 interpreted as a percentage.
|
/// A value between 0 and 85 interpreted as a percentage.
|
||||||
///
|
///
|
||||||
/// Other values are already used by the other variants of this enum.
|
/// Other values are already used by the other variants of this enum.
|
||||||
@@ -601,7 +601,7 @@ impl From<ReceiveProgress> for EventType {
|
|||||||
fn from(source: ReceiveProgress) -> Self {
|
fn from(source: ReceiveProgress) -> Self {
|
||||||
let val = match source {
|
let val = match source {
|
||||||
ReceiveProgress::Connected => 50,
|
ReceiveProgress::Connected => 50,
|
||||||
ReceiveProgress::CollectionRecieved => 100,
|
ReceiveProgress::CollectionReceived => 100,
|
||||||
ReceiveProgress::BlobProgress(val) => 100 + 10 * val,
|
ReceiveProgress::BlobProgress(val) => 100 + 10 * val,
|
||||||
ReceiveProgress::Completed => 1000,
|
ReceiveProgress::Completed => 1000,
|
||||||
ReceiveProgress::Failed => 0,
|
ReceiveProgress::Failed => 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user