mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-10 14:34:24 +08:00
repo: move daemon.lock -> repo.lock
The "daemon.lock" was really a repo.lock, as the cli also took it and the purpose was any process mutex. This is part of the 1-to-2 migration, and has already been handled in https://github.com/ipfs/fs-repo-migrations/tree/master/ipfs-1-to-2
This commit is contained in:
@ -8,9 +8,9 @@ import (
|
|||||||
"github.com/ipfs/go-ipfs/util"
|
"github.com/ipfs/go-ipfs/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LockFile is the filename of the daemon lock, relative to config dir
|
// LockFile is the filename of the repo lock, relative to config dir
|
||||||
// TODO rename repo lock and hide name
|
// TODO rename repo lock and hide name
|
||||||
const LockFile = "daemon.lock"
|
const LockFile = "repo.lock"
|
||||||
|
|
||||||
func Lock(confdir string) (io.Closer, error) {
|
func Lock(confdir string) (io.Closer, error) {
|
||||||
c, err := lock.Lock(path.Join(confdir, LockFile))
|
c, err := lock.Lock(path.Join(confdir, LockFile))
|
||||||
|
Reference in New Issue
Block a user