Pass in last context.TODO to make test pass
@@ -35,7 +35,7 @@ func TestRateLimit(t *testing.T) {
t.Fatal("expected to not get rate limited, but was limited")
}
- ok, err = rateLimiter.RateLimit("slow", 2, time.Hour)
+ ok, err = rateLimiter.RateLimit(context.TODO(), "slow", 2, time.Hour)
if err != nil {
t.Fatalf("rate limiter error: %v", err)
}
