We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ed93c6 commit f4e871eCopy full SHA for f4e871e
src/agent/services/exporter.rs
@@ -130,12 +130,12 @@ impl NetworkStateQuerier {
130
)
131
)]
132
pub fn new(
133
- rpc_urls: &Vec<Url>,
+ rpc_urls: &[Url],
134
rpc_timeout: Duration,
135
query_interval: Interval,
136
network_state_tx: watch::Sender<NetworkState>,
137
) -> Self {
138
- let rpc_multi_client = RpcMultiClient::new_with_timeout(rpc_urls.clone(), rpc_timeout);
+ let rpc_multi_client = RpcMultiClient::new_with_timeout(rpc_urls.to_vec(), rpc_timeout);
139
NetworkStateQuerier {
140
rpc_multi_client,
141
query_interval,
0 commit comments