Skip to content

Commit 0bdaacb

Browse files
committed
Merge branch 'main' into cfg-file-watcher
2 parents 1738886 + ee25871 commit 0bdaacb

6 files changed

Lines changed: 39 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ jobs:
3737
- name: Checkout code
3838
uses: actions/checkout@v4
3939
with:
40-
ref: "stable"
4140
fetch-depth: 0
4241
submodules: true
4342

@@ -108,7 +107,6 @@ jobs:
108107
- name: Checkout code
109108
uses: actions/checkout@v4
110109
with:
111-
ref: "stable"
112110
fetch-depth: 0
113111
submodules: true
114112

@@ -168,7 +166,6 @@ jobs:
168166
- name: Checkout code
169167
uses: actions/checkout@v4
170168
with:
171-
ref: "stable"
172169
fetch-depth: 0
173170
submodules: true
174171

@@ -221,7 +218,6 @@ jobs:
221218
- name: Checkout code
222219
uses: actions/checkout@v4
223220
with:
224-
ref: "stable"
225221
fetch-depth: 0
226222
submodules: true
227223

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ cb-metrics = { path = "crates/metrics" }
3333
cb-pbs = { path = "crates/pbs" }
3434
cb-signer = { path = "crates/signer" }
3535
cipher = "0.4"
36-
clap = { version = "4.5.4", features = ["derive", "env"] }
36+
clap = { version = "4.5.48", features = ["derive", "env"] }
3737
color-eyre = "0.6.3"
3838
ctr = "0.9.2"
3939
derive_more = { version = "2.0.1", features = ["deref", "display", "from", "into"] }

bin/cli.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
11
use clap::Parser;
22

3+
/// Version string with a leading 'v'
4+
const VERSION: &str = concat!("v", env!("CARGO_PKG_VERSION"));
5+
6+
/// Subcommands and global arguments for the module
7+
#[derive(Parser, Debug)]
8+
#[command(name = "Commit-Boost CLI", version = VERSION, about, long_about = None)]
9+
struct Cli {}
10+
311
/// Main entry point of the Commit-Boost CLI
412
#[tokio::main]
513
async fn main() -> eyre::Result<()> {
14+
// Parse the CLI arguments (currently only used for version info, more can be
15+
// added later)
16+
let _cli = Cli::parse();
17+
618
color_eyre::install()?;
719
// set default backtrace unless provided
820

bin/pbs.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,20 @@ use clap::Parser;
77
use eyre::Result;
88
use tracing::{error, info};
99

10+
/// Version string with a leading 'v'
11+
const VERSION: &str = concat!("v", env!("CARGO_PKG_VERSION"));
12+
13+
/// Subcommands and global arguments for the module
14+
#[derive(Parser, Debug)]
15+
#[command(name = "Commit-Boost PBS Service", version = VERSION, about, long_about = None)]
16+
struct Cli {}
17+
1018
#[tokio::main]
1119
async fn main() -> Result<()> {
20+
// Parse the CLI arguments (currently only used for version info, more can be
21+
// added later)
22+
let _cli = Cli::parse();
23+
1224
color_eyre::install()?;
1325

1426
let _guard = initialize_tracing_log(PBS_MODULE_NAME, LogsSettings::from_env_config()?);

bin/signer.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,20 @@ use clap::Parser;
77
use eyre::Result;
88
use tracing::{error, info};
99

10+
/// Version string with a leading 'v'
11+
const VERSION: &str = concat!("v", env!("CARGO_PKG_VERSION"));
12+
13+
/// Subcommands and global arguments for the module
14+
#[derive(Parser, Debug)]
15+
#[command(name = "Commit-Boost Signer Service", version = VERSION, about, long_about = None)]
16+
struct Cli {}
17+
1018
#[tokio::main]
1119
async fn main() -> Result<()> {
20+
// Parse the CLI arguments (currently only used for version info, more can be
21+
// added later)
22+
let _cli = Cli::parse();
23+
1224
color_eyre::install()?;
1325

1426
let _guard = initialize_tracing_log(SIGNER_MODULE_NAME, LogsSettings::from_env_config()?);

config.example.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ headers = { X-MyCustomHeader = "MyCustomValue" }
8989
# OPTIONAL
9090
get_params = { param1 = "value1", param2 = "value2" }
9191
# Whether to enable timing games, as tuned by `target_first_request_ms` and `frequency_get_header_ms`.
92+
# NOTE: if neither `target_first_request_ms` nor `frequency_get_header_ms` is set, this flag has no effect.
93+
#
9294
# These values should be carefully chosen for each relay, as each relay has different latency and timing games setups.
9395
# They should only be used by advanced users, and if mis-configured can result in unforeseen effects, e.g. fetching a lower header value,
9496
# or getting a temporary IP ban.

0 commit comments

Comments
 (0)