pedro-otero / crews-be

Find credits of the song you're playing in Spotify from Discogs
1 stars 0 forks source link

Count active searches #8

Open pedro-otero opened 6 years ago

pedro-otero commented 6 years ago

Keep count of active searches. Active means: not completed and actively getting results and parsing them.

This might help when implementing cached responses, since the number of active searches will be equal to the TTL (in secs, for a 60/second Discogs API limit) of the response.

The approach could be keeping the operations list for every search in state and make the search function modify and iterate over this list.