You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My question is why use ticks := expiration >> shift[i] (not ticks := duration >> shift[i]) to calculate the location in v.wheel[i] ?
I think use ticks := duration >> shift[i] is more reasonable, because it represent the distance(Or time difference) from the avaliable data location(v.time>> shift[i]). expiration is a random value(unixtime.Now()+ttl), it can be anywhere in v.wheel[i], conflict with the RemoveExpired.
The text was updated successfully, but these errors were encountered:
Before add a node to
Variable
, it needs to call findBucket to find a location for the node.My question is why use
ticks := expiration >> shift[i]
(notticks := duration >> shift[i]
) to calculate the location inv.wheel[i]
?I think use
ticks := duration >> shift[i]
is more reasonable, because it represent the distance(Or time difference) from the avaliable data location(v.time>> shift[i]
).expiration
is a random value(unixtime.Now()+ttl
), it can be anywhere inv.wheel[i]
, conflict with theRemoveExpired
.The text was updated successfully, but these errors were encountered: