Skip to content

Commit b400b0e

Browse files
changed T to E
1 parent df80c15 commit b400b0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/rs-dapi-client/src/connection_pool.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ impl ConnectionPool {
6767
/// * `prefix` - Prefix for the item in the pool. Used to distinguish between Core and Platform clients.
6868
/// * `uri` - URI of the node.
6969
/// * `settings` - Applied request settings.
70-
pub fn get_or_create<T>(
70+
pub fn get_or_create<E>(
7171
&self,
7272
prefix: PoolPrefix,
7373
uri: &Uri,
7474
settings: Option<&AppliedRequestSettings>,
75-
create: impl FnOnce() -> Result<PoolItem, T>,
76-
) -> Result<PoolItem, T> {
75+
create: impl FnOnce() -> Result<PoolItem, E>,
76+
) -> Result<PoolItem, E> {
7777
if let Some(cli) = self.get(prefix, uri, settings) {
7878
return Ok(cli);
7979
}

0 commit comments

Comments
 (0)