Skip to content

Commit

Permalink
chore: remove redundant .clone call
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaiahReid committed Oct 13, 2023
1 parent 2b857a7 commit 6eab1b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/chainhook-cli/src/service/http_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ pub fn load_predicates_from_redis(
ctx: &Context,
) -> Result<Vec<(ChainhookSpecification, PredicateStatus)>, String> {
let redis_uri: &str = config.expected_api_database_uri();
let client = redis::Client::open(redis_uri.clone())
let client = redis::Client::open(redis_uri)
.map_err(|e| format!("unable to connect to redis: {}", e.to_string()))?;
let mut predicate_db_conn = client
.get_connection()
Expand Down

0 comments on commit 6eab1b9

Please sign in to comment.