Skip to content

Commit 51cf48e

Browse files
committed
[PR-FIX] Proper comments when needed
1 parent 77d32f4 commit 51cf48e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

internal/ratelimit/ratelimit.go

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,16 @@ import (
1010
"github.com/go-resty/resty/v2"
1111
)
1212

13+
// Extracted from Port HTTP Headers
1314
type RateLimitInfo struct {
14-
Limit int // x-ratelimit-limit
15-
Period int // x-ratelimit-period
16-
Remaining int // x-ratelimit-remaining
17-
Reset int // x-ratelimit-reset (seconds until reset)
15+
// x-ratelimit-limit
16+
Limit int
17+
// x-ratelimit-period
18+
Period int
19+
// x-ratelimit-remaining
20+
Remaining int
21+
// x-ratelimit-reset (seconds until reset)
22+
Reset int
1823
}
1924

2025
func (r *RateLimitInfo) IsNearLimit(threshold float64) bool {

0 commit comments

Comments
 (0)