Consumer is a minimal ConsumerGroupHandler that also tracks an in-flight counter so it can report a meaningful load sample.
| 105 | // Consumer is a minimal ConsumerGroupHandler that also tracks an in-flight |
| 106 | // counter so it can report a meaningful load sample. |
| 107 | type Consumer struct { |
| 108 | ready chan bool |
| 109 | inFlight atomic.Int64 |
| 110 | } |
| 111 | |
| 112 | // loadSample is invoked by LoadAwareSticky once per JoinGroup. In a real |
| 113 | // deployment this would read /proc/stat, runtime.NumGoroutine, consumer lag, |
nothing calls this directly
no outgoing calls
no test coverage detected