Skip to content

Commit 034cde9

Browse files
authored
typo: CollectionReceived (#4189)
1 parent 02455d8 commit 034cde9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/imex/transfer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ async fn transfer_from_provider(
468468
opts,
469469
on_connected,
470470
|collection| {
471-
context.emit_event(ReceiveProgress::CollectionRecieved.into());
471+
context.emit_event(ReceiveProgress::CollectionReceived.into());
472472
progress.set_total(collection.total_blobs_size());
473473
async { Ok(()) }
474474
},
@@ -579,7 +579,7 @@ fn spawn_progress_proxy(context: Context, mut rx: broadcast::Receiver<u16>) {
579579
#[derive(Debug)]
580580
enum ReceiveProgress {
581581
Connected,
582-
CollectionRecieved,
582+
CollectionReceived,
583583
/// A value between 0 and 85 interpreted as a percentage.
584584
///
585585
/// Other values are already used by the other variants of this enum.
@@ -601,7 +601,7 @@ impl From<ReceiveProgress> for EventType {
601601
fn from(source: ReceiveProgress) -> Self {
602602
let val = match source {
603603
ReceiveProgress::Connected => 50,
604-
ReceiveProgress::CollectionRecieved => 100,
604+
ReceiveProgress::CollectionReceived => 100,
605605
ReceiveProgress::BlobProgress(val) => 100 + 10 * val,
606606
ReceiveProgress::Completed => 1000,
607607
ReceiveProgress::Failed => 0,

0 commit comments

Comments
 (0)