From efdde2a4d1228e8e910d16d4f12bf060878f03cc Mon Sep 17 00:00:00 2001 From: Joshua Oladele Date: Wed, 27 Sep 2023 16:45:26 +0100 Subject: [PATCH] Update semantics --- chaindexing/src/contract_states.rs | 3 ++- chaindexing/src/repos/postgres_repo/raw_queries.rs | 2 +- chaindexing/src/repos/repo.rs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/chaindexing/src/contract_states.rs b/chaindexing/src/contract_states.rs index cb43388..217d79e 100644 --- a/chaindexing/src/contract_states.rs +++ b/chaindexing/src/contract_states.rs @@ -50,7 +50,8 @@ pub trait ContractState: table_name = Self::table_name(), ); - let states: Vec = ChaindexingRepo::load_data_from_raw_query(client, &raw_query).await; + let states: Vec = + ChaindexingRepo::load_data_list_from_raw_query(client, &raw_query).await; Ok(states) } diff --git a/chaindexing/src/repos/postgres_repo/raw_queries.rs b/chaindexing/src/repos/postgres_repo/raw_queries.rs index 5fa58b9..13fc298 100644 --- a/chaindexing/src/repos/postgres_repo/raw_queries.rs +++ b/chaindexing/src/repos/postgres_repo/raw_queries.rs @@ -26,7 +26,7 @@ impl ExecutesWithRawQuery for PostgresRepo { #[async_trait::async_trait] impl LoadsDataWithRawQuery for PostgresRepo { - async fn load_data_from_raw_query( + async fn load_data_list_from_raw_query( client: &Self::RawQueryClient, query: &str, ) -> Vec { diff --git a/chaindexing/src/repos/repo.rs b/chaindexing/src/repos/repo.rs index 5b06aa6..a7dc847 100644 --- a/chaindexing/src/repos/repo.rs +++ b/chaindexing/src/repos/repo.rs @@ -69,7 +69,7 @@ pub trait ExecutesWithRawQuery: HasRawQueryClient { #[async_trait::async_trait] pub trait LoadsDataWithRawQuery: HasRawQueryClient { - async fn load_data_from_raw_query( + async fn load_data_list_from_raw_query( conn: &Self::RawQueryClient, query: &str, ) -> Vec;