MCPcopy
hub / github.com/hashicorp/memberlist / checkBroadcastQueueDepth

Method checkBroadcastQueueDepth

memberlist.go:787–797  ·  view source on GitHub ↗

checkBroadcastQueueDepth periodically checks the size of the broadcast queue to see if it is too large

()

Source from the content-addressed store, hash-verified

785// checkBroadcastQueueDepth periodically checks the size of the broadcast queue
786// to see if it is too large
787func (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}

Callers 1

newMemberlistFunction · 0.95

Calls 1

NumQueuedMethod · 0.80

Tested by

no test coverage detected