Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc committed May 18, 2024
1 parent eccc3e8 commit f8bb132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions/validator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl Extension for Validator {
let clients = client
.endpoints()
.iter()
.map(|e| Arc::new(Client::with_endpoints(&[e]).expect("Unable to create client")))
.map(|e| Arc::new(Client::with_endpoints([e]).expect("Unable to create client")))
.collect();

Ok(Self::new(config.clone(), clients))
Expand Down

0 comments on commit f8bb132

Please sign in to comment.