async fn load_transaction_proto(
    object_store: &ObjectStore,
    path: &Path,
) -> Result<proto::Transaction> {
    let data = object_store
        .get(&path)
        .await
        .context(Read {})?
        .map_ok(|bytes| bytes.to_vec())
        .try_concat()
        .await
        .context(Read {})?;
    let proto = proto::Transaction::decode(&data[..]).context(Deserialization {})?;
    Ok(proto)
}
/// Load and deserialize protobuf-encoded transaction from store.
Load and deserialize protobuf-encoded transaction from store.
Load and deserialize protobuf - encoded transaction from store .
async fn load_transaction_proto(
    object_store: &ObjectStore,
    path: &Path,
) -> Result<proto::Transaction> {
    let data = object_store
        .get(&path)
        .await
        .context(Read {})?
        .map_ok(|bytes| bytes.to_vec())
        .try_concat()
        .await
        .context(Read {})?;
    let proto = proto::Transaction::decode(&data[..]).context(Deserialization {})?;
    Ok(proto)
}
async fn load_transaction_proto ( object_store : & ObjectStore , path : & Path , ) -> Result < proto :: Transaction > { let data = object_store . get ( & path ) . await . context ( Read { } ) ? . map_ok ( | bytes | bytes . to_vec ( ) ) . try_concat ( ) . await . context ( Read { } ) ? ; let proto = proto :: Transaction :: decode ( & data [ .. ] ) . context ( Deserialization { } ) ? ; Ok ( proto ) }
Load and deserialize protobuf-encoded transaction from store.
Load and deserialize protobuf - encoded transaction from store .
object_store
&ObjectStore
path
&Path
object_store
&ObjectStore
path
&Path