Skip to content

Commit

Permalink
rename download.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-dupre committed Feb 11, 2024
1 parent 6ad250f commit 8338caf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# To Do

- autocomplete
- share download bar
- light shell scripts for wrapper commands
- option : record
- option : debug mode
- option : configure truncation
- perf : no more untagged enums
- perf : precise event subscription

# Done

Expand Down
6 changes: 3 additions & 3 deletions src/handlers/download.rs → src/handlers/downloads.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl Handler for WaitForTransfer {
parent,
..
} if *parent == self.copy_id => {
state.plug(Transfering {
state.plug(Transfer {
transfer_id: *id,
progress: None,
path: std::mem::take(&mut self.path),
Expand All @@ -73,13 +73,13 @@ impl Handler for WaitForTransfer {
}

/// Keep track of transfer
struct Transfering {
struct Transfer {
transfer_id: BuildStepId,
progress: Option<ProgressBar>,
path: String,
}

impl Handler for Transfering {
impl Handler for Transfer {
fn handle(&mut self, state: &mut State, action: &Action) -> HandlerResult {
match action {
Action::Result {
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pub mod builds;
pub mod debug;
pub mod download;
pub mod downloads;
pub mod logs;
pub mod message;
pub mod unknown;
2 changes: 1 addition & 1 deletion src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use tokio::io::{AsyncWriteExt, BufWriter};
use crate::action::Action;
use crate::handlers::builds::handle_new_builds;
use crate::handlers::debug::DebugHandler;
use crate::handlers::download::handle_new_download;
use crate::handlers::downloads::handle_new_download;
use crate::handlers::message::handle_new_message;
use crate::handlers::unknown::handle_new_unknown;
use crate::wrapper::command::NixCommand;
Expand Down

0 comments on commit 8338caf

Please sign in to comment.