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 df80c15 commit b400b0eCopy full SHA for b400b0e
packages/rs-dapi-client/src/connection_pool.rs
@@ -67,13 +67,13 @@ impl ConnectionPool {
67
/// * `prefix` - Prefix for the item in the pool. Used to distinguish between Core and Platform clients.
68
/// * `uri` - URI of the node.
69
/// * `settings` - Applied request settings.
70
- pub fn get_or_create<T>(
+ pub fn get_or_create<E>(
71
&self,
72
prefix: PoolPrefix,
73
uri: &Uri,
74
settings: Option<&AppliedRequestSettings>,
75
- create: impl FnOnce() -> Result<PoolItem, T>,
76
- ) -> Result<PoolItem, T> {
+ create: impl FnOnce() -> Result<PoolItem, E>,
+ ) -> Result<PoolItem, E> {
77
if let Some(cli) = self.get(prefix, uri, settings) {
78
return Ok(cli);
79
}
0 commit comments