WordPress/openverse-api

Remove unused numeric throttle classses

zackkrida opened this issue ยท 2 comments

Problem

As discussed in the comments of #864, we should remove the unused throttle classes OneThousandPerMinute and OnePerSecond.

Description

Removing unused code.

Alternatives

Additional context

Implementation

  • ๐Ÿ™‹ I would be interested in implementing this feature.

Unfortunately, these classes are all presently being used:

TenPerDay

throttle_classes = (TenPerDay,)

OneThousandPerMinute

throttle_classes=[OneThousandPerMinute],

throttle_classes=[OneThousandPerMinute],

OnePerSecond

throttle_classes = (OnePerSecond,)


Perhaps they could be replaced with other throttle classes we have now, I'm not familiar enough with the throttling setup to be able to tell at this point.

Excellent find @AetherUnbound! I'll close the issue as we can always open another one if a clear need arises.