Skip to content

Commit

Permalink
changed T to E
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumExplorer committed Oct 8, 2024
1 parent df80c15 commit b400b0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/rs-dapi-client/src/connection_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ impl ConnectionPool {
/// * `prefix` - Prefix for the item in the pool. Used to distinguish between Core and Platform clients.
/// * `uri` - URI of the node.
/// * `settings` - Applied request settings.
pub fn get_or_create<T>(
pub fn get_or_create<E>(
&self,
prefix: PoolPrefix,
uri: &Uri,
settings: Option<&AppliedRequestSettings>,
create: impl FnOnce() -> Result<PoolItem, T>,
) -> Result<PoolItem, T> {
create: impl FnOnce() -> Result<PoolItem, E>,
) -> Result<PoolItem, E> {
if let Some(cli) = self.get(prefix, uri, settings) {
return Ok(cli);
}
Expand Down

0 comments on commit b400b0e

Please sign in to comment.