[TieredStorage] Make AccountMetaFlags::new_from pub (#32194)

#### Summary of Changes
The newly introduced AccountMetaFlags::new_from must be pub
in order to make the tiered storage writer able to use it.
This commit is contained in:
Yueh-Hsuan Chiang 2023-06-21 00:00:59 +08:00 committed by GitHub
parent 24ffc113bb
commit c56d0bc6a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ pub struct AccountMetaFlags {
}
impl AccountMetaFlags {
fn new_from(optional_fields: &AccountMetaOptionalFields) -> Self {
pub fn new_from(optional_fields: &AccountMetaOptionalFields) -> Self {
let mut flags = AccountMetaFlags::default();
flags.set_has_rent_epoch(optional_fields.rent_epoch.is_some());
flags.set_has_account_hash(optional_fields.account_hash.is_some());