MCPcopy Index your code
hub / github.com/coder/coder / Self

Method Self

enterprise/replicasync/replicasync.go:395–399  ·  view source on GitHub ↗

Self represents the current replica.

()

Source from the content-addressed store, hash-verified

393
394// Self represents the current replica.
395func (m *Manager) Self() database.Replica {
396 m.mutex.Lock()
397 defer m.mutex.Unlock()
398 return m.self
399}
400
401// AllPrimary returns every primary replica (not workspace proxy replicas),
402// including itself.

Callers 1

TestReplicaFunction · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by 1

TestReplicaFunction · 0.64