mirror of
https://github.com/cloudnativelabs/kube-router.git
synced 2025-11-20 20:41:06 +01:00
fix(NPC): remove redundant assign
This commit is contained in:
parent
b06b4f05c3
commit
301e856a92
@ -253,7 +253,6 @@ func (npc *NetworkPolicyController) fullPolicySync() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for ipFamily, iptablesSaveRestore := range npc.iptablesSaveRestore {
|
for ipFamily, iptablesSaveRestore := range npc.iptablesSaveRestore {
|
||||||
ipFamily := ipFamily
|
|
||||||
npc.filterTableRules[ipFamily].Reset()
|
npc.filterTableRules[ipFamily].Reset()
|
||||||
saveStart := time.Now()
|
saveStart := time.Now()
|
||||||
err := iptablesSaveRestore.SaveInto("filter", npc.filterTableRules[ipFamily])
|
err := iptablesSaveRestore.SaveInto("filter", npc.filterTableRules[ipFamily])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user