caTUstrophy / backend

Backend part for our catastrophe aid tool. Written in Go.
GNU General Public License v3.0
6 stars 3 forks source link

Implement expired request and offer reaper #74

Closed numbleroot closed 8 years ago

numbleroot commented 8 years ago

A function stub exists in db/init.go which is called CheckForExpired(). This should be a goroutine called upon start up of the API to cycle through the database for requests and offers and set Expired = true for when an item contains a ValidityPeriod smaller than the current time. This is usually called a reaper function.