MCPcopy Index your code
hub / github.com/loft-sh/devpod / Unlock

Method Unlock

pkg/client/clientimplementation/proxy_client.go:69–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67}
68
69func (s *proxyClient) Unlock() {
70 s.initLock()
71
72 // try to unlock workspace
73 err := s.workspaceLock.Unlock()
74 if err != nil {
75 s.log.Warnf("Error unlocking workspace: %v", err)
76 }
77}
78
79func tryLock(ctx context.Context, lock *flock.Flock, name string, log log.Logger) error {
80 done := printLogMessagePeriodically(fmt.Sprintf("Trying to lock %s, seems like another process is running that blocks this %s", name, name), log)

Callers

nothing calls this directly

Calls 3

initLockMethod · 0.95
UnlockMethod · 0.65
WarnfMethod · 0.45

Tested by

no test coverage detected