We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7305e1a commit fd77267Copy full SHA for fd77267
elock.go
@@ -95,7 +95,7 @@ func (r *Record) IsDead() bool {
95
96
refresh, _ := time.ParseDuration(r.Value.Refresh)
97
98
- if r.LastRefresh().Before(time.Now().Add(4 * refresh)) {
+ if r.LastRefresh().Before(time.Now().Add(-4 * refresh)) {
99
return true
100
}
101
main/elock.go
@@ -17,7 +17,7 @@ import (
17
)
18
19
const APP = "elock"
20
-const VERSION = "0.3.1"
+const VERSION = "0.3.2"
21
22
type Config struct {
23
EtcdEndpoints []string `json:"etcd-endpoints"`
0 commit comments