From ea73216baaa7ea7921ed49162b366048a2b3d5d9 Mon Sep 17 00:00:00 2001 From: Alexandros Tzimas Date: Wed, 23 Oct 2024 13:42:55 +0300 Subject: [PATCH] feat(site-builder): remove epochs default value (#267) --- Cargo.lock | 2 +- site-builder/Cargo.toml | 2 +- site-builder/src/publish.rs | 2 +- site-builder/src/walrus/command.rs | 6 ------ 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b519e95d..876ab243 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5605,7 +5605,7 @@ checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" [[package]] name = "site-builder" -version = "1.0.1" +version = "1.0.2" dependencies = [ "anyhow", "base64 0.22.1", diff --git a/site-builder/Cargo.toml b/site-builder/Cargo.toml index 30c80622..f5d67bb9 100644 --- a/site-builder/Cargo.toml +++ b/site-builder/Cargo.toml @@ -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 diff --git a/site-builder/src/publish.rs b/site-builder/src/publish.rs index 52918cb8..18c96f5d 100644 --- a/site-builder/src/publish.rs +++ b/site-builder/src/publish.rs @@ -51,7 +51,7 @@ pub struct PublishOptions { #[clap(long)] ws_resources: Option, /// 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. diff --git a/site-builder/src/walrus/command.rs b/site-builder/src/walrus/command.rs index 2de95e8a..17919c28 100644 --- a/site-builder/src/walrus/command.rs +++ b/site-builder/src/walrus/command.rs @@ -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. /// @@ -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.