hack to make awc usable with key pool
This commit is contained in:
parent
ce0dcc28cd
commit
898f7f9a62
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "torn-key-pool"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
|
|
@ -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…
Reference in a new issue