Skip to content

Commit

Permalink
Synthesize a tar when sending manifest from broker to worker
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbobbio committed Jan 18, 2024
1 parent 86832b5 commit aeca66b
Show file tree
Hide file tree
Showing 6 changed files with 491 additions and 13 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 14 additions & 2 deletions crates/maelstrom-base/src/proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,22 @@ pub enum Identity {
}

#[derive(Clone, Copy, Debug, Deserialize, PartialEq, Serialize)]
pub struct Mode(u32);
pub struct Mode(pub u32);

impl From<Mode> for u32 {
fn from(m: Mode) -> u32 {
m.0
}
}

#[derive(Clone, Copy, Debug, Deserialize, PartialEq, Serialize)]
pub struct UnixTimestamp(u64);
pub struct UnixTimestamp(pub i64);

impl From<UnixTimestamp> for i64 {
fn from(t: UnixTimestamp) -> Self {
t.0
}
}

#[derive(Clone, Debug, Deserialize, PartialEq, Serialize)]
pub struct ManifestEntryMetadata {
Expand Down
1 change: 1 addition & 0 deletions crates/maelstrom-broker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ slog-async.workspace = true
bytesize.workspace = true

[dev-dependencies]
assert_matches.workspace = true
enum-map.workspace = true
itertools.workspace = true
maplit.workspace = true
Expand Down
Loading

0 comments on commit aeca66b

Please sign in to comment.