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

Method unregisterHeartbeat

coderd/x/chatd/chatd.go:4826–4830  ·  view source on GitHub ↗

unregisterHeartbeat removes a chat from the centralized heartbeat loop when chat processing finishes.

(chatID uuid.UUID)

Source from the content-addressed store, hash-verified

4824// unregisterHeartbeat removes a chat from the centralized
4825// heartbeat loop when chat processing finishes.
4826func (p *Server) unregisterHeartbeat(chatID uuid.UUID) {
4827 p.heartbeatMu.Lock()
4828 defer p.heartbeatMu.Unlock()
4829 delete(p.heartbeatRegistry, chatID)
4830}
4831
4832// heartbeatLoop runs in a single goroutine, issuing one batch
4833// heartbeat query per interval for all registered chats.

Callers 1

processChatMethod · 0.95

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected