Skip to content

Commit

Permalink
The domain that has hit the rate limit is what I want to know.
Browse files Browse the repository at this point in the history
  • Loading branch information
pyama86 committed Nov 28, 2023
1 parent 19497a9 commit 86853df
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 86853df

Please sign in to comment.