swarm-controller: config-pr handlers take their own sub-state via FromRef
This commit is contained in:
parent
37ba403992
commit
53382d9c78
1 changed files with 65 additions and 3 deletions
|
|
@ -173,7 +173,7 @@ const POLL_INTERVAL: std::time::Duration = std::time::Duration::from_mins(5);
|
|||
pub struct ConfigPrCache(Mutex<HashMap<String, ConfigPrStatus>>);
|
||||
|
||||
impl ConfigPrCache {
|
||||
fn new() -> Self {
|
||||
pub(crate) fn new() -> Self {
|
||||
Self(Mutex::new(HashMap::new()))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue