ryshoooo / food-me

Finally a GOOD Database Middleware
MIT License
0 stars 0 forks source link

Cleanup old username #7

Closed ryshoooo closed 2 months ago

ryshoooo commented 3 months ago

Quite a few ways to do this. Can be a configuration parameter (lifetime), can be upon connection termination. Connection termination might be annoying.

Probably a setting in the JSON payload for lifetime of the connection. Then just have a scheduled goroutine that cleans up the state.