Skip to content

Commit fd77267

Browse files
committed
Fix died monitoring
1 parent 7305e1a commit fd77267

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

elock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (r *Record) IsDead() bool {
9595

9696
refresh, _ := time.ParseDuration(r.Value.Refresh)
9797

98-
if r.LastRefresh().Before(time.Now().Add(4 * refresh)) {
98+
if r.LastRefresh().Before(time.Now().Add(-4 * refresh)) {
9999
return true
100100
}
101101

main/elock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
)
1818

1919
const APP = "elock"
20-
const VERSION = "0.3.1"
20+
const VERSION = "0.3.2"
2121

2222
type Config struct {
2323
EtcdEndpoints []string `json:"etcd-endpoints"`

0 commit comments

Comments
 (0)