()
| 67 | } |
| 68 | |
| 69 | func (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 | |
| 79 | func 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) |