[#972] Use min/max builtins

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2024-02-14 10:03:07 +03:00 committed by Evgenii Stratonikov
parent 45fd4e4ff1
commit 89784b2e0a
10 changed files with 11 additions and 53 deletions

View file

@ -82,10 +82,7 @@ func (c *cleanupTable) touch(keyString string, now uint64, binNodeInfo []byte) b
result := !ok || access.removeFlag || !bytes.Equal(access.binNodeInfo, binNodeInfo)
access.removeFlag = false // reset remove flag on each touch
if now > access.epoch {
access.epoch = now
}
access.epoch = max(access.epoch, now)
access.binNodeInfo = binNodeInfo // update binary node info
c.lastAccess[keyString] = access