mirror of
https://github.com/openziti/ziti.git
synced 2026-10-13 07:41:17 +00:00
Don't get time.Now() again when we just got it
This commit is contained in:
@@ -178,7 +178,7 @@ func (self *heartbeatCallback) HeartbeatRespTx(int64) {}
|
||||
func (self *heartbeatCallback) HeartbeatRespRx(ts int64) {
|
||||
now := time.Now()
|
||||
self.lastResponse = now.UnixMilli()
|
||||
self.latencyMetric.Update(time.Now().UnixNano() - ts)
|
||||
self.latencyMetric.Update(now.UnixNano() - ts)
|
||||
}
|
||||
|
||||
func (self *heartbeatCallback) CheckHeartBeat() {
|
||||
|
||||
Reference in New Issue
Block a user