generateUniqueID generates a short unique identifier for pool names using auto-increment. This makes it easier to identify and track pools in order of creation.
()
| 29 | // generateUniqueID generates a short unique identifier for pool names using auto-increment. |
| 30 | // This makes it easier to identify and track pools in order of creation. |
| 31 | func generateUniqueID() string { |
| 32 | id := poolIDCounter.Add(1) |
| 33 | return strconv.FormatUint(id, 10) |
| 34 | } |
| 35 | |
| 36 | // Limiter is the interface of a rate limiter or a circuit breaker. |
| 37 | type Limiter interface { |
no test coverage detected