(addr string, desired int)
| 44 | wg sync.WaitGroup |
| 45 | |
| 46 | mu sync.Mutex |
| 47 | idle []idlePrewarmConn |
| 48 | rules map[string]*config.Rule |
| 49 | warming int |
| 50 | failures int |
| 51 | nextRetry time.Time |
| 52 | stopped bool |
| 53 | } |
| 54 | |
| 55 | // initPrewarm 会为规则中的每个目标开启后台保温。 |
| 56 | func initPrewarm(rule *config.Rule) { |
| 57 | defaultRoutingRuntime.prewarm.init(rule) |
| 58 | } |
| 59 |
no test coverage detected