Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Apr 12, 2024
1 parent 0ce44b6 commit 74b20c3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions crates/torii/grpc/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ use starknet::core::types::{FromByteSliceError, FromStrError, StateUpdate};
use starknet_crypto::FieldElement;

use crate::proto::world::{
world_client, MetadataRequest, RetrieveEntitiesRequest, RetrieveEntitiesResponse, RetrieveEventMessagesRequest, SubscribeEntitiesRequest, SubscribeEntityResponse, SubscribeEventMessagesRequest, SubscribeModelsRequest, SubscribeModelsResponse
world_client, MetadataRequest, RetrieveEntitiesRequest, RetrieveEntitiesResponse,
RetrieveEventMessagesRequest, SubscribeEntitiesRequest, SubscribeEntityResponse,
SubscribeEventMessagesRequest, SubscribeModelsRequest, SubscribeModelsResponse,
};
use crate::types::schema::Entity;
use crate::types::{KeysClause, Query};
Expand Down Expand Up @@ -86,7 +88,11 @@ impl WorldClient {
query: Query,
) -> Result<RetrieveEntitiesResponse, Error> {
let request = RetrieveEventMessagesRequest { query: Some(query.into()) };
self.inner.retrieve_event_messages(request).await.map_err(Error::Grpc).map(|res| res.into_inner())
self.inner
.retrieve_event_messages(request)
.await
.map_err(Error::Grpc)
.map(|res| res.into_inner())
}

/// Subscribe to entities updates of a World.
Expand Down

0 comments on commit 74b20c3

Please sign in to comment.