checkBroadcastQueueDepth periodically checks the size of the broadcast queue to see if it is too large
()
| 785 | // checkBroadcastQueueDepth periodically checks the size of the broadcast queue |
| 786 | // to see if it is too large |
| 787 | func (m *Memberlist) checkBroadcastQueueDepth() { |
| 788 | for { |
| 789 | select { |
| 790 | case <-time.After(m.config.QueueCheckInterval): |
| 791 | numq := m.broadcasts.NumQueued() |
| 792 | metrics.AddSampleWithLabels([]string{"memberlist", "queue", "broadcasts"}, float32(numq), m.metricLabels) |
| 793 | case <-m.shutdownCh: |
| 794 | return |
| 795 | } |
| 796 | } |
| 797 | } |
no test coverage detected