Skip to content

Commit

Permalink
add commments to acquireDistributedLock
Browse files Browse the repository at this point in the history
  • Loading branch information
seletskiy committed Jun 10, 2016
1 parent 136f5a6 commit 8921c5c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import (
"github.com/seletskiy/hierr"
)

// acquireDistributedLock tries to acquire atomic file lock on each of
// specified remote nodes. lockFile is used to specify target lock file, it
// must exist on every node. runnerFactory will be used to make connection
// to remote node. If noLockFail is given, then only warning will be printed
// if lock process has been failed.
func acquireDistributedLock(
lockFile string,
runnerFactory runnerFactory,
Expand Down

0 comments on commit 8921c5c

Please sign in to comment.