mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-24 11:42:36 +01:00
ed75533cb1
* optionally protect against multiple starts with flock Fixes #1823 * use traditional .lock extension * move config key to top level
15 lines
306 B
Go
15 lines
306 B
Go
package flock
|
|
|
|
// documentation for github.com/gofrs/flock incorrectly claims that
|
|
// Flock implements sync.Locker; it does not because the Unlock method
|
|
// has a return type (err).
|
|
type Flocker interface {
|
|
Unlock() error
|
|
}
|
|
|
|
type noopFlocker struct{}
|
|
|
|
func (n *noopFlocker) Unlock() error {
|
|
return nil
|
|
}
|