Skip to content

Commit

Permalink
Update cosmos/loadtest/account.go
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
zakir-code and coderabbitai[bot] authored Nov 20, 2024
1 parent e5f3e7c commit af634b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cosmos/loadtest/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ func (a *Accounts) NextAccount() *Account {
}

func (a *Accounts) IsFistAccount() bool {
a.RLock()
defer a.RUnlock()
return a.cacheIndex == 1
}

Expand Down

0 comments on commit af634b4

Please sign in to comment.