Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coder/coder
/ isHealthy
Method
isHealthy
enterprise/tailnet/pgcoord.go:997–1001 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
995
}
996
997
func
(q *querier) isHealthy() bool {
998
q.mu.Lock()
999
defer
q.mu.Unlock()
1000
return
q.healthy
1001
}
1002
1003
func
(q *querier) cleanupConn(c *connIO) {
1004
logger := q.logger.With(slog.F(
"peer_id"
, c.UniqueID()))
Callers
2
TestPGCoordinatorUnhealthy
Function · 0.80
Coordinate
Method · 0.80
Calls
2
Lock
Method · 0.45
Unlock
Method · 0.45
Tested by
1
TestPGCoordinatorUnhealthy
Function · 0.64