Skip to content

Commit 107ebce

Browse files
fix: make linter happy
1 parent 9cc4ec6 commit 107ebce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cns/service/main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -876,13 +876,13 @@ func main() {
876876
if !cnsconfig.ManageEndpointState {
877877
logger.Errorf("[Azure CNS] ManageEndpointState must be set to true for AzureHost mode")
878878
return
879-
} else {
880-
// If cns manageendpointstate is true, then cns maintains its own state and reconciles from it.
881-
// in this case, cns maintains state with containerid as key and so in-memory cache can lookup
882-
// and update based on container id.
883-
cns.GlobalPodInfoScheme = cns.InfraIDPodInfoScheme
884879
}
885880

881+
// If cns manageendpointstate is true, then cns maintains its own state and reconciles from it.
882+
// in this case, cns maintains state with containerid as key and so in-memory cache can lookup
883+
// and update based on container id.
884+
cns.GlobalPodInfoScheme = cns.InfraIDPodInfoScheme
885+
886886
var podInfoByIPProvider cns.PodInfoByIPProvider
887887
podInfoByIPProvider, err = getPodInfoByIPProvider(rootCtx, cnsconfig, httpRemoteRestService, nil, "")
888888
if err != nil {

0 commit comments

Comments
 (0)