Write account path impl ReadableAccount (#16779)

This commit is contained in:
Jeff Washington (jwash)
2021-04-28 15:29:22 -05:00
committed by GitHub
parent 783bd79e9d
commit f533d3be77
3 changed files with 31 additions and 10 deletions

View File

@@ -462,7 +462,7 @@ impl AppendVec {
/// and will be available to other threads.
pub fn append_accounts(
&self,
accounts: &[(StoredMeta, Option<&AccountSharedData>)],
accounts: &[(StoredMeta, Option<&impl ReadableAccount>)],
hashes: &[impl Borrow<Hash>],
) -> Vec<usize> {
let _lock = self.append_lock.lock().unwrap();