File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
store/postgres/src/relational Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,9 @@ use std::collections::HashMap;
44use std:: fmt:: { Display , Write } ;
55use std:: sync:: Arc ;
66
7+ use diesel:: sql_query;
78use diesel:: sql_types:: { Bool , Text } ;
8- use diesel :: { sql_query , RunQueryDsl } ;
9+ use diesel_async :: RunQueryDsl ;
910use graph:: components:: store:: StoreError ;
1011use graph:: itertools:: Itertools ;
1112use graph:: prelude:: {
@@ -852,7 +853,8 @@ impl IndexList {
852853 . bind :: < Text , _ > ( namespace. to_string ( ) )
853854 . bind :: < Text , _ > ( table_name)
854855 . bind :: < Text , _ > ( index_name. clone ( ) )
855- . get_results :: < IndexInfo > ( conn) ?
856+ . get_results :: < IndexInfo > ( conn)
857+ . await ?
856858 . into_iter ( )
857859 . map ( |ii| ii. into ( ) )
858860 . collect :: < Vec < IndexInfo > > ( ) ;
@@ -865,9 +867,9 @@ impl IndexList {
865867 namespace. to_string( ) ,
866868 index_name
867869 ) ) ;
868- drop_query. execute ( conn) ?;
870+ drop_query. execute ( conn) . await ?;
869871 }
870- sql_query ( create_query) . execute ( conn) ?;
872+ sql_query ( create_query) . execute ( conn) . await ?;
871873 }
872874 }
873875 }
You can’t perform that action at this time.
0 commit comments