more visibility adjustments
This commit is contained in:
parent
c83c304bbe
commit
e93b3529cb
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "torn-key-pool"
|
name = "torn-key-pool"
|
||||||
version = "0.8.2"
|
version = "0.8.3"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["Pyrit [2111649]"]
|
authors = ["Pyrit [2111649]"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
|
@ -207,7 +207,7 @@ pub trait KeyPoolStorage {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
struct PoolOptions {
|
pub struct PoolOptions {
|
||||||
comment: Option<String>,
|
comment: Option<String>,
|
||||||
hooks_before: std::collections::HashMap<std::any::TypeId, Box<dyn std::any::Any + Send + Sync>>,
|
hooks_before: std::collections::HashMap<std::any::TypeId, Box<dyn std::any::Any + Send + Sync>>,
|
||||||
hooks_after: std::collections::HashMap<std::any::TypeId, Box<dyn std::any::Any + Send + Sync>>,
|
hooks_after: std::collections::HashMap<std::any::TypeId, Box<dyn std::any::Any + Send + Sync>>,
|
||||||
|
@ -228,7 +228,7 @@ impl<'a, C, S> KeyPoolExecutor<'a, C, S>
|
||||||
where
|
where
|
||||||
S: KeyPoolStorage,
|
S: KeyPoolStorage,
|
||||||
{
|
{
|
||||||
fn new(
|
pub fn new(
|
||||||
storage: &'a S,
|
storage: &'a S,
|
||||||
selector: KeySelector<S::Key, S::Domain>,
|
selector: KeySelector<S::Key, S::Domain>,
|
||||||
options: Arc<PoolOptions>,
|
options: Arc<PoolOptions>,
|
||||||
|
|
|
@ -267,9 +267,9 @@ where
|
||||||
C: ApiClient,
|
C: ApiClient,
|
||||||
S: KeyPoolStorage,
|
S: KeyPoolStorage,
|
||||||
{
|
{
|
||||||
client: C,
|
pub client: C,
|
||||||
pub storage: S,
|
pub storage: S,
|
||||||
options: Arc<PoolOptions>,
|
pub options: Arc<PoolOptions>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<C, S> KeyPool<C, S>
|
impl<C, S> KeyPool<C, S>
|
||||||
|
|
Loading…
Reference in a new issue