MCPcopy Create free account
hub / github.com/coder/coder / resyncPeerMappings

Method resyncPeerMappings

enterprise/tailnet/pgcoord.go:1365–1373  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1363}
1364
1365func (q *querier) resyncPeerMappings() {
1366 q.mu.Lock()
1367 defer q.mu.Unlock()
1368 keys := make([]mKey, 0, len(q.mappers))
1369 for mk := range q.mappers {
1370 keys = append(keys, mk)
1371 }
1372 q.mappingQ.enqueue(keys...)
1373}
1374
1375func (q *querier) handleUpdates() {
1376 defer q.wg.Done()

Callers 2

listenPeerMethod · 0.95
listenTunnelMethod · 0.95

Calls 3

enqueueMethod · 0.80
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected