Skip to content

Commit

Permalink
Remove SerializedObject alias
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfind committed Sep 17, 2024
1 parent ff1d04a commit 4289ace
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions crates/sui-graphql-rpc/src/types/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ use sui_types::object::{
MoveObject as NativeMoveObject, Object as NativeObject, Owner as NativeOwner,
};
use sui_types::TypeTag;

type SerializedObject = Option<Vec<u8>>;

#[derive(Clone, Debug)]
pub(crate) struct Object {
pub address: SuiAddress,
Expand Down Expand Up @@ -761,7 +758,7 @@ impl Object {
pub(crate) fn new_serialized(
object_id: SuiAddress,
version: u64,
serialized: SerializedObject,
serialized: Option<Vec<u8>>,
checkpoint_viewed_at: u64,
root_version: u64,
) -> Self {
Expand Down Expand Up @@ -1529,13 +1526,13 @@ impl Loader<LatestAtKey> for Db {

#[async_trait::async_trait]
impl Loader<PointLookupKey> for Db {
type Value = SerializedObject;
type Value = Option<Vec<u8>>;
type Error = Error;

async fn load(
&self,
keys: &[PointLookupKey],
) -> Result<HashMap<PointLookupKey, SerializedObject>, Error> {
) -> Result<HashMap<PointLookupKey, Option<Vec<u8>>>, Error> {
use full_objects_history::dsl as f;

let id_versions: BTreeSet<_> = keys
Expand Down

0 comments on commit 4289ace

Please sign in to comment.