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:
parent
aeb6df3507
commit
ce4251be99
|
@ -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),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue