Skip to content

Commit 4536c04

Browse files
author
Cory Schwartz
committed
wait till expiry
1 parent f691b91 commit 4536c04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/filecoin-chain-archiver/cmds/locker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ var cmdService = &cli.Command{
116116
err = fmt.Errorf("lock not aquired")
117117
return err
118118
}
119-
time.Sleep(10 * time.Second)
119+
time.Sleep(time.Second + time.Until(lock.Expiry))
120120
}
121121
},
122122
},

0 commit comments

Comments
 (0)