Skip to content

Commit

Permalink
Update semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
Jurshsmith committed Sep 27, 2023
1 parent b6aa0e3 commit efdde2a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion chaindexing/src/contract_states.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ pub trait ContractState:
table_name = Self::table_name(),
);

let states: Vec<Self> = ChaindexingRepo::load_data_from_raw_query(client, &raw_query).await;
let states: Vec<Self> =
ChaindexingRepo::load_data_list_from_raw_query(client, &raw_query).await;

Ok(states)
}
Expand Down
2 changes: 1 addition & 1 deletion chaindexing/src/repos/postgres_repo/raw_queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl ExecutesWithRawQuery for PostgresRepo {

#[async_trait::async_trait]
impl LoadsDataWithRawQuery for PostgresRepo {
async fn load_data_from_raw_query<Data: Send + DeserializeOwned>(
async fn load_data_list_from_raw_query<Data: Send + DeserializeOwned>(
client: &Self::RawQueryClient,
query: &str,
) -> Vec<Data> {
Expand Down
2 changes: 1 addition & 1 deletion chaindexing/src/repos/repo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub trait ExecutesWithRawQuery: HasRawQueryClient {

#[async_trait::async_trait]
pub trait LoadsDataWithRawQuery: HasRawQueryClient {
async fn load_data_from_raw_query<Data: Send + DeserializeOwned>(
async fn load_data_list_from_raw_query<Data: Send + DeserializeOwned>(
conn: &Self::RawQueryClient,
query: &str,
) -> Vec<Data>;
Expand Down

0 comments on commit efdde2a

Please sign in to comment.