This repository was archived by the owner on Oct 1, 2021. It is now read-only.
File tree 1 file changed +1
-12
lines changed
1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -7,17 +7,6 @@ const { lock } = require('proper-lockfile')
7
7
const log = debug ( 'repo-migrations:repo_fs_lock' )
8
8
const lockFile = 'repo.lock'
9
9
10
- /**
11
- * Duration in milliseconds in which the lock is considered stale
12
- * @see https://github.com/moxystudio/node-proper-lockfile#lockfile-options
13
- * The default value of 10000 was too low for ipfs and sometimes `proper-lockfile`
14
- * would throw an exception because it couldn't update the lock file mtime within
15
- * the 10s threshold. @see https://github.com/ipfs/js-ipfs-repo/pull/182
16
- * Increasing to 20s is a temporary fix a permanent fix should be implemented in
17
- * the future.
18
- */
19
- const STALE_TIME = 20000
20
-
21
10
/**
22
11
* Lock the repo in the given dir and given repo's version.
23
12
*
@@ -28,7 +17,7 @@ const STALE_TIME = 20000
28
17
exports . lock = async ( version , dir ) => {
29
18
const file = path . join ( dir , lockFile )
30
19
log ( 'locking %s' , file )
31
- const release = await lock ( dir , { lockfilePath : file , stale : STALE_TIME } )
20
+ const release = await lock ( dir , { lockfilePath : file } )
32
21
return {
33
22
close : ( ) => {
34
23
log ( 'releasing lock %s' , file )
You can’t perform that action at this time.
0 commit comments