aboutsummaryrefslogtreecommitdiff
path: root/src/model/garage.rs
diff options
context:
space:
mode:
authorFelix Scheinost <fesc@symentis.com>2023-01-04 18:28:56 +0100
committerFelix Scheinost <fesc@symentis.com>2023-01-04 18:35:10 +0100
commitf2106c27336d7d03671dbbbcd1401232c2beb61f (patch)
treee7847561add9e29dd002814085f1dd784684e2d3 /src/model/garage.rs
parent02e8eb167efa1f08d69fe7f8e6192cde726c45aa (diff)
downloadgarage-f2106c27336d7d03671dbbbcd1401232c2beb61f.tar.gz
garage-f2106c27336d7d03671dbbbcd1401232c2beb61f.zip
Implement `rpc_secret_file`
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 ac1846ce..ffa54dc5 100644
--- a/src/model/garage.rs
+++ b/src/model/garage.rs
@@ -159,7 +159,7 @@ impl Garage {
};
let network_key = NetworkKey::from_slice(
- &hex::decode(&config.rpc_secret).expect("Invalid RPC secret key")[..],
+ &hex::decode(&config.rpc_secret.as_ref().unwrap()).expect("Invalid RPC secret key")[..],
)
.expect("Invalid RPC secret key");