Skip to content

Commit

Permalink
feat(site-builder): remove epochs default value (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tzal3x authored Oct 23, 2024
1 parent 3e5e838 commit ea73216
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion site-builder/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "site-builder"
version = "1.0.1"
version = "1.0.2"
edition = "2021"
license = "Apache-2.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion site-builder/src/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub struct PublishOptions {
#[clap(long)]
ws_resources: Option<PathBuf>,
/// The number of epochs for which to save the resources on Walrus.
#[clap(long, default_value_t = 1)]
#[clap(long)]
pub epochs: u64,
/// Preprocess the directory before publishing.
/// See the `list-directory` command. Warning: Rewrites all `index.html` files.
Expand Down
6 changes: 0 additions & 6 deletions site-builder/src/walrus/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ pub enum Command {
Store {
/// The path to the file to be stored.
file: PathBuf,
/// The number of epochs for which to store the file.
#[serde(default = "default::epochs")]
epochs: u64,
/// Do not check for the blob status before storing it.
///
Expand Down Expand Up @@ -112,10 +110,6 @@ mod default {
pub(crate) fn gas_budget() -> u64 {
500_000_000
}

pub(crate) fn epochs() -> u64 {
1
}
}

/// Helper struct to build [`WalrusJsonCmd`] instances.
Expand Down

0 comments on commit ea73216

Please sign in to comment.