()
| 343 | } |
| 344 | |
| 345 | func (v KafkaVersion) String() string { |
| 346 | if v.version[0] == 0 { |
| 347 | return fmt.Sprintf("0.%d.%d.%d", v.version[1], v.version[2], v.version[3]) |
| 348 | } |
| 349 | |
| 350 | return fmt.Sprintf("%d.%d.%d", v.version[0], v.version[1], v.version[2]) |
| 351 | } |
| 352 | |
| 353 | // NewExponentialBackoff returns a function that implements an exponential backoff strategy with jitter. |
| 354 | // It follows KIP-580, implementing the formula: |
no outgoing calls