@cryptotaxi247 / kubo / commits / dd25a7522

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

Juan Batiz-Benet committed Apr 19, 2015 at 23:33 UTC dd25a75225edba813c70ad958dc069f1a74e87f9
1 file changed +2 -2
repo/fsrepo/lock/lock.go
+2 -2
@@ -8,9 +8,9 @@ import (
8 "github.com/ipfs/go-ipfs/util"
9 )
10
11 -// LockFile is the filename of the daemon lock, relative to config dir
11 +// LockFile is the filename of the repo lock, relative to config dir
12 // TODO rename repo lock and hide name
13 -const LockFile = "daemon.lock"
13 +const LockFile = "repo.lock"
14
15 func Lock(confdir string) (io.Closer, error) {
16 c, err := lock.Lock(path.Join(confdir, LockFile))