提交 dd25a752 作者: Juan Batiz-Benet

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
上级 c1b8d292
......@@ -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))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论