diff options
author | Felix Scheinost <fesc@symentis.com> | 2023-01-04 18:28:56 +0100 |
---|---|---|
committer | Felix Scheinost <fesc@symentis.com> | 2023-01-04 18:35:10 +0100 |
commit | f2106c27336d7d03671dbbbcd1401232c2beb61f (patch) | |
tree | e7847561add9e29dd002814085f1dd784684e2d3 /src/model | |
parent | 02e8eb167efa1f08d69fe7f8e6192cde726c45aa (diff) | |
download | garage-f2106c27336d7d03671dbbbcd1401232c2beb61f.tar.gz garage-f2106c27336d7d03671dbbbcd1401232c2beb61f.zip |
Implement `rpc_secret_file`
Diffstat (limited to 'src/model')
-rw-r--r-- | src/model/garage.rs | 2 |
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"); |