Skip to content

Commit

Permalink
Merge pull request #1386 from bnb-chain/fix-update-rate-limited
Browse files Browse the repository at this point in the history
fix: check if BucketExtraInfo is nil
  • Loading branch information
BarryTong65 authored Apr 11, 2024
2 parents a9f7a1a + 32edb6b commit f2cf566
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modular/authenticator/authenticator.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,10 @@ func (a *AuthenticationModular) VerifyAuthentication(
}
return false, ErrConsensusWithDetail("failed to get bucket extra info from consensus, error: " + err.Error())
}
if bucketExtraInfo.IsRateLimited {
return false, ErrBucketIsRateLimited
if bucketExtraInfo != nil {
if bucketExtraInfo.IsRateLimited {
return false, ErrBucketIsRateLimited
}
}
spID, err := a.getSPID()
if err != nil {
Expand Down

0 comments on commit f2cf566

Please sign in to comment.