aboutsummaryrefslogtreecommitdiff
path: root/src/model/garage.rs
diff options
context:
space:
mode:
authortrinity-1686a <trinity@deuxfleurs.fr>2024-11-07 00:29:26 +0100
committertrinity-1686a <trinity@deuxfleurs.fr>2024-11-07 00:29:26 +0100
commit9bd9e392ba5db16b7f0aa6d5ae6aea70307f3960 (patch)
tree07219e74caffc8c2ab3b67c5e6ecf57452bd5c43 /src/model/garage.rs
parenta18b3f0d1fb932df5abce6f5e79169ca01006e3b (diff)
downloadgarage-9bd9e392ba5db16b7f0aa6d5ae6aea70307f3960.tar.gz
garage-9bd9e392ba5db16b7f0aa6d5ae6aea70307f3960.zip
fix bit/byte inversion in rpc secret error message
Diffstat (limited to 'src/model/garage.rs')
-rw-r--r--src/model/garage.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/garage.rs b/src/model/garage.rs
index 363b02dd..29e0bddd 100644
--- a/src/model/garage.rs
+++ b/src/model/garage.rs
@@ -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)?;