Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/unkeyed/unkey into eng-1292…
Browse files Browse the repository at this point in the history
…-blog-json-syntax-highlighting-doesnt-work
  • Loading branch information
MichaelUnkey committed Aug 14, 2024
2 parents 8c14615 + 8885560 commit 0b6414c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/agent/services/ratelimit/ratelimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func (s *service) Ratelimit(ctx context.Context, req *ratelimitv1.RatelimitReque
ExpiresAt: time.Now().Add(time.Duration(req.Lease.Timeout) * time.Millisecond),
}
}

if !s.ratelimiter.Has(ctx, ratelimitReq.Identifier, ratelimitReq.Duration) {
// TODO: reenable later
if false && !s.ratelimiter.Has(ctx, ratelimitReq.Identifier, ratelimitReq.Duration) {
originRes, err := s.ratelimitOrigin(ctx, req)
if err != nil {
s.logger.Err(err).Msg("failed to call ratelimit origin")
Expand Down

0 comments on commit 0b6414c

Please sign in to comment.