mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Correct the message-queue's handling of var
This commit is contained in:
@@ -103,7 +103,7 @@ async fn main() {
|
|||||||
Arc::new(rocksdb::TransactionDB::open_default(serai_env::var("DB_PATH").unwrap()).unwrap());
|
Arc::new(rocksdb::TransactionDB::open_default(serai_env::var("DB_PATH").unwrap()).unwrap());
|
||||||
|
|
||||||
let read_key = |str| {
|
let read_key = |str| {
|
||||||
let Ok(key) = serai_env::var(str) else { None? };
|
let key = serai_env::var(str)?;
|
||||||
|
|
||||||
let mut repr = <<Ristretto as Ciphersuite>::G as GroupEncoding>::Repr::default();
|
let mut repr = <<Ristretto as Ciphersuite>::G as GroupEncoding>::Repr::default();
|
||||||
repr.as_mut().copy_from_slice(&hex::decode(key).unwrap());
|
repr.as_mut().copy_from_slice(&hex::decode(key).unwrap());
|
||||||
|
|||||||
Reference in New Issue
Block a user