Skip to content

Commit

Permalink
refactor: simpler cost model
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Feb 19, 2024
1 parent bcd04dd commit 5728d1b
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 495 deletions.
9 changes: 9 additions & 0 deletions file-service/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ pub struct ServerArgs {
default_value = "pretty"
)]
pub log_format: LogFormat,
//TODO: More complex price management
#[arg(
long,
value_name = "PRICE_PER_BYTE",
default_value = "1",
env = "PRICE_PER_BYTE",
help = "Price per byte in GRT"
)]
pub price_per_byte: f32,
}

#[derive(clap::ValueEnum, Clone, Debug, Serialize, Deserialize, Default)]
Expand Down
Loading

0 comments on commit 5728d1b

Please sign in to comment.