server icon indicating copy to clipboard operation
server copied to clipboard

Optimize token cleanup in deleteExpiredTokens

Open coderabbitai[bot] opened this issue 1 year ago • 0 comments
trafficstars

The function iterates over all tokens to delete expired ones. Consider optimizing this process if the map grows large. Consider using a more efficient data structure or scheduling regular cleanup tasks to handle large numbers of tokens.\n\nPR URL: https://github.com/rustymotors/server/pull/2037\nComment URL: https://github.com/rustymotors/server/pull/2037#discussion_r1724152019

coderabbitai[bot] avatar Aug 21 '24 23:08 coderabbitai[bot]