Skip to content

Commit

Permalink
plain dataset id
Browse files Browse the repository at this point in the history
  • Loading branch information
denisbsu committed Oct 29, 2024
1 parent 2f03971 commit 58d0624
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/network-scheduler/src/assignment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl Assignment {
return None
};
let shared_box = SalsaBox::new(&temporary_public_key, &worker_secret_key);
let generic_nonce = GenericArray::clone_from_slice(&nonce);
let generic_nonce = GenericArray::clone_from_slice(nonce);
let Ok(decrypted_plaintext) = shared_box.decrypt(&generic_nonce, &ciphertext[..]) else {
return None
};
Expand Down
3 changes: 1 addition & 2 deletions crates/network-scheduler/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use tokio::join;
use tokio::signal::unix::{signal, SignalKind};
use tokio::sync::mpsc::Receiver;
use tokio::time::Instant;
use base64::{engine::general_purpose::STANDARD as base64, Engine};

use sqd_messages::signatures::msg_hash;
use sqd_messages::{Pong, RangeSet};
Expand Down Expand Up @@ -337,7 +336,7 @@ fn build_assignment(
files.insert(filename.clone(), filename);
}
let dataset_str = chunk.dataset_id;
let dataset_id = base64.encode(dataset_str);
let dataset_id = dataset_str;
let size_bytes = chunk.size_bytes;
let chunk = Chunk {
id: chunk_str.clone(),
Expand Down

0 comments on commit 58d0624

Please sign in to comment.