Fix the return type of AccountsFile::account_matches_owners() (#30354)

Update AccountsFile::account_matches_owners() to return the matched index
This commit is contained in:
Yueh-Hsuan Chiang 2023-02-15 19:34:36 -08:00 committed by GitHub
parent aeb6df3507
commit ce4251be99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ impl AccountsFile {
&self,
offset: usize,
owners: &[&Pubkey],
) -> Result<(), MatchAccountOwnerError> {
) -> Result<usize, MatchAccountOwnerError> {
match self {
Self::AppendVec(av) => av.account_matches_owners(offset, owners),
}