hack to make awc usable with key pool
This commit is contained in:
parent
809b798503
commit
3ecc302097
2 changed files with 11 additions and 1 deletions
|
|
@ -127,3 +127,13 @@ where
|
|||
KeyPoolExecutor::new(&self.client, &self.storage, domain)
|
||||
}
|
||||
}
|
||||
|
||||
pub trait ApiClientExt: ApiClient {
|
||||
fn with_pool<'a, S>(&'a self, domain: KeyDomain, storage: &'a S) -> KeyPoolExecutor<Self, S>
|
||||
where
|
||||
Self: Sized,
|
||||
S: KeyPoolStorage,
|
||||
{
|
||||
KeyPoolExecutor::new(self, storage, domain)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue