MCPcopy
hub / github.com/prometheus/prometheus / SetClient

Method SetClient

storage/remote/queue_manager.go:1080–1084  ·  view source on GitHub ↗

SetClient updates the client used by a queue. Used when only client specific fields are updated to avoid restarting the queue.

(c WriteClient)

Source from the content-addressed store, hash-verified

1078// SetClient updates the client used by a queue. Used when only client specific
1079// fields are updated to avoid restarting the queue.
1080func (t *QueueManager) SetClient(c WriteClient) {
1081 t.clientMtx.Lock()
1082 t.storeClient = c
1083 t.clientMtx.Unlock()
1084}
1085
1086func (t *QueueManager) client() WriteClient {
1087 t.clientMtx.RLock()

Callers 4

TestSampleDeliveryFunction · 0.80
TestWALMetadataDeliveryFunction · 0.80
ApplyConfigMethod · 0.80

Calls 1

LockMethod · 0.80

Tested by 3

TestSampleDeliveryFunction · 0.64
TestWALMetadataDeliveryFunction · 0.64