(edits []agentContext.CacheEdit)
| 1128 | } |
| 1129 | for _, candidate := range candidates { |
| 1130 | if breakpoints.Cardinality() >= maxHistoryBreakpoints { |
| 1131 | break |
| 1132 | } |
| 1133 | if candidate >= boundary { |
| 1134 | continue |
| 1135 | } |
| 1136 | tooClose := false |
| 1137 | for existing := range breakpoints.Iter() { |
| 1138 | if absInt(candidate-existing) < 4 { |
| 1139 | tooClose = true |
| 1140 | break |
| 1141 | } |
| 1142 | } |
| 1143 | if !tooClose { |
| 1144 | breakpoints.Add(candidate) |
| 1145 | } |
| 1146 | } |
no outgoing calls