This commit is contained in:
parent
9a1f4f69dd
commit
93a830d6ae
@ -47,7 +47,7 @@ Options:
|
||||
- ✅ Error handing when fetching config
|
||||
- ✅ Local bound tcp api socket
|
||||
- ✅ ZMQ -> Websocket
|
||||
- ❌ Bug in RwLocks (agent often give up)
|
||||
- ✅ Bug in RwLocks (agent often give up)
|
||||
|
||||
|
||||
### Notes
|
||||
|
@ -145,12 +145,11 @@ async fn handle_cfg_reload(ctxclone: &Arc<RwLock<Context>>, last_cfg_reload: &mu
|
||||
}
|
||||
|
||||
async fn handle_fwblock(ctxclone: Arc<RwLock<Context>>, ret: &mut Vec<String>, fwlen: &mut usize) {
|
||||
let toblock;
|
||||
{
|
||||
let toblock = {
|
||||
let mut ctx = ctxclone.write().await;
|
||||
ctx.gc_blocklist().await;
|
||||
toblock = ctx.get_blocklist_toblock().await;
|
||||
}
|
||||
ctx.get_blocklist_toblock().await
|
||||
};
|
||||
|
||||
// apply firewall blocking
|
||||
match fwblock(&toblock, ret, fwlen) {
|
||||
|
Loading…
Reference in New Issue
Block a user