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
Currently, the ReaperData structure is a map[deletetime]map[name]bool. This is not convenient (because the map[deletetime] isn't sorted) when hunting for old slots that failed to get deleted when they should.
A likely better alternative would be to just store the ReaperData as a sorted []ReaperObject (for lack of a better name), where a ReaperObject has a ReaperTime (when to delete) and, again, a map[name]bool (set of names to delete). Adding to the ReaperData becomes just an append() and when running the reaper we just scan from the front and delete as long as the ReaperTime is in the past.
The text was updated successfully, but these errors were encountered:
Currently, the ReaperData structure is a map[deletetime]map[name]bool. This is not convenient (because the map[deletetime] isn't sorted) when hunting for old slots that failed to get deleted when they should.
A likely better alternative would be to just store the ReaperData as a sorted []ReaperObject (for lack of a better name), where a ReaperObject has a ReaperTime (when to delete) and, again, a map[name]bool (set of names to delete). Adding to the ReaperData becomes just an append() and when running the reaper we just scan from the front and delete as long as the ReaperTime is in the past.
The text was updated successfully, but these errors were encountered: