Function with cyclomatic complexity higher than threshold GO-R1005
Anti-pattern
Minor
1 occurrence in this check
func StartSyncWithLeader has a cyclomatic complexity of 21 with "high" risk
 85}
 86
 87// StartSyncWithLeader starts to sync with leader.
 88func (s *RegionSyncer) StartSyncWithLeader(addr string) { 89	s.wg.Add(1)
 90
 91	s.mu.Lock()