Skip to content

Commit

Permalink
Merge pull request #39 from pyama86/need-key
Browse files Browse the repository at this point in the history
The domain that has hit the rate limit is what I want to know.
  • Loading branch information
k1LoW authored Nov 28, 2023
2 parents 19497a9 + 86853df commit 118956a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions context.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type Context struct {
WindowLen time.Duration
RateLimitRemaining int
RateLimitReset int
Key string
lh *limitHandler
}

Expand All @@ -29,6 +30,7 @@ func newContext(statusCode int, err error, lh *limitHandler) *Context {
WindowLen: lh.windowLen,
RateLimitRemaining: lh.rateLimitRemaining,
RateLimitReset: lh.rateLimitReset,
Key: lh.key,
lh: lh,
}
}
Expand Down

0 comments on commit 118956a

Please sign in to comment.