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

Method acquireExit

provisionerd/provisionerd.go:321–333  ·  view source on GitHub ↗

acquireExit returns true if the acquire loop should exit

()

Source from the content-addressed store, hash-verified

319
320// acquireExit returns true if the acquire loop should exit
321func (p *Server) acquireExit() bool {
322 p.mutex.Lock()
323 defer p.mutex.Unlock()
324 if p.closingB {
325 p.opts.Logger.Debug(p.closeContext, "exiting acquire; provisionerd is closing")
326 return true
327 }
328 if p.shuttingDownB {
329 p.opts.Logger.Debug(p.closeContext, "exiting acquire; provisionerd is shutting down")
330 return true
331 }
332 return false
333}
334
335func (p *Server) acquireAndRunOne(client proto.DRPCProvisionerDaemonClient) error {
336 ctx := p.closeContext

Callers 1

acquireLoopMethod · 0.95

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected