Skip to content

Commit 90a831c

Browse files
authored
Typo in: Bitvavo-Ratelimit-ResetAt
Corrected small typo in key compare to Bitvavo-Ratelimit-ResetAt "ResetAt" should have be PascalCase style and not "Resetat"
1 parent a4c4456 commit 90a831c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitvavo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ func updateRateLimit(response http.Header) {
653653
if key == "Bitvavo-Ratelimit-Remaining" {
654654
rateLimitRemaining, _ = strconv.Atoi(value[0])
655655
}
656-
if key == "Bitvavo-Ratelimit-Resetat" {
656+
if key == "Bitvavo-Ratelimit-ResetAt" {
657657
rateLimitReset, _ = strconv.Atoi(value[0])
658658
now := int(time.Nanosecond * time.Duration(time.Now().UnixNano()) / time.Millisecond)
659659
var timeToWait = rateLimitReset - now

0 commit comments

Comments
 (0)