From 46e27075ef595682c4b26a774ff2625c9783aaf4 Mon Sep 17 00:00:00 2001 From: taylan isikdemir Date: Wed, 17 Apr 2024 15:53:13 -0700 Subject: [PATCH] explicit duration to nanosec conversion --- service/matching/liveness.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/matching/liveness.go b/service/matching/liveness.go index 21b847e9feb..9cd5c46f061 100644 --- a/service/matching/liveness.go +++ b/service/matching/liveness.go @@ -102,7 +102,7 @@ func (l *liveness) eventLoop() { func (l *liveness) isAlive() bool { now := l.timeSource.Now().UnixNano() lastUpdate := atomic.LoadInt64(&l.lastEventTimeNano) - return now-lastUpdate < int64(l.ttl) + return now-lastUpdate < l.ttl.Nanoseconds() } func (l *liveness) markAlive() {