Skip to content

Commit

Permalink
Switch to Single Redis Connection with Prefixed Keys (#82)
Browse files Browse the repository at this point in the history
* fix: audit

* feat: use single redis con
  • Loading branch information
sebasti810 authored Jul 19, 2024
1 parent 1a089b0 commit 150077c
Show file tree
Hide file tree
Showing 2 changed files with 119 additions and 164 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use keystore_rs::{KeyChain, KeyStore, KeyStoreType};
use crate::cfg::{CommandLineArgs, Commands};
use node_types::{lightclient::LightClient, sequencer::Sequencer, NodeType};
use std::sync::Arc;
use storage::RedisConnections;
use storage::RedisConnection;

#[macro_use]
extern crate log;
Expand Down Expand Up @@ -48,7 +48,7 @@ async fn main() -> std::io::Result<()> {
"redis configuration not found",
)
})?;
let redis_connections = RedisConnections::new(&redis_config)
let redis_connections = RedisConnection::new(&redis_config)
.map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e.to_string()))?;

let signing_key = KeyStoreType::KeyChain(KeyChain)
Expand Down
Loading

0 comments on commit 150077c

Please sign in to comment.