MCPcopy
hub / github.com/PatchMon/PatchMon / Health

Method Health

server-source-code/internal/database/database.go:77–82  ·  view source on GitHub ↗

Health checks database and returns nil if healthy.

(ctx context.Context)

Source from the content-addressed store, hash-verified

75
76// Health checks database and returns nil if healthy.
77func (p *Pool) Health(ctx context.Context) error {
78 ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
79 defer cancel()
80
81 return p.Ping(ctx)
82}

Callers

nothing calls this directly

Calls 1

PingMethod · 0.95

Tested by

no test coverage detected