fix bit/byte inversion in rpc secret error message #898

Merged
lx merged 1 commit from trinity-1686a/garage:rpc-comment into main 2024-11-07 11:11:12 +00:00
Showing only changes of commit 9bd9e392ba - Show all commits

View file

@ -141,7 +141,7 @@ impl Garage {
)?)
.ok()
.and_then(|x| NetworkKey::from_slice(&x))
.ok_or_message("Invalid RPC secret key: expected 32 bits of entropy, please check the documentation for requirements")?;
.ok_or_message("Invalid RPC secret key: expected 32 bytes of random hex, please check the documentation for requirements")?;
let (replication_factor, consistency_mode) = parse_replication_mode(&config)?;