1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-09 19:32: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:
Juan Batiz-Benet
2015-04-19 23:33:36 -07:00
parent c1b8d292fb
commit dd25a75225

View File

@ -8,9 +8,9 @@ import (
"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
const LockFile = "daemon.lock"
const LockFile = "repo.lock"
func Lock(confdir string) (io.Closer, error) {
c, err := lock.Lock(path.Join(confdir, LockFile))