From ee1bec1e6a548165f1ca0fe7165ae7a6c5ce406b Mon Sep 17 00:00:00 2001 From: Jiahao Huang Date: Sun, 25 Jul 2021 14:19:11 +0800 Subject: [PATCH] Remove wrong comment It does not assume proxier.mu is held because it locks it at the first line. --- pkg/proxy/ipvs/proxier.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/proxy/ipvs/proxier.go b/pkg/proxy/ipvs/proxier.go index 9b1a076f7a9..99ec1b533ec 100644 --- a/pkg/proxy/ipvs/proxier.go +++ b/pkg/proxy/ipvs/proxier.go @@ -1008,7 +1008,6 @@ func (proxier *Proxier) OnNodeSynced() { } // This is where all of the ipvs calls happen. -// assumes proxier.mu is held func (proxier *Proxier) syncProxyRules() { proxier.mu.Lock() defer proxier.mu.Unlock()