Skip to content

Commit

Permalink
fixup after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkuo committed Apr 19, 2022
1 parent 739d1f8 commit 190f005
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 2 additions & 1 deletion sui/src/rpc_gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ impl RpcGatewayServer for RpcGatewayImpl {
debug!("get_objects : {}", owner);
let objects = self
.gateway
.get_owned_objects(owner)?
.get_owned_objects(owner)
.await?
.into_iter()
.map(NamedObjectRef::from)
.collect();
Expand Down
8 changes: 2 additions & 6 deletions sui/src/rpc_gateway_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,8 @@ impl GatewayAPI for RpcGatewayClient {
Ok(self.client.get_object_info(object_id).await?)
}

fn get_owned_objects(&self, account_addr: SuiAddress) -> Result<Vec<ObjectRef>, Error> {
let handle = Handle::current();
let _ = handle.enter();
let object_response: ObjectResponse =
futures::executor::block_on(self.client.get_owned_objects(account_addr))?;

async fn get_owned_objects(&self, account_addr: SuiAddress) -> Result<Vec<ObjectRef>, Error> {
let object_response: ObjectResponse = self.client.get_owned_objects(account_addr).await?;
let object_refs = object_response
.objects
.into_iter()
Expand Down

0 comments on commit 190f005

Please sign in to comment.