MCPcopy
hub / github.com/grafana/tempo / pollingLoop

Method pollingLoop

tempodb/tempodb.go:785–797  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

783}
784
785func (rw *readerWriter) pollingLoop(ctx context.Context) {
786 ticker := time.NewTicker(rw.cfg.BlocklistPoll)
787
788 for {
789 select {
790 case <-ctx.Done():
791 close(rw.pollerShutdownCh)
792 return
793 case <-ticker.C:
794 rw.pollBlocklist(ctx)
795 }
796 }
797}
798
799func (rw *readerWriter) pollBlocklist(ctx context.Context) {
800 blocklist, compactedBlocklist, err := rw.blocklistPoller.Do(ctx, rw.blocklist)

Callers 1

EnablePollingMethod · 0.95

Calls 2

pollBlocklistMethod · 0.95
DoneMethod · 0.65

Tested by

no test coverage detected