File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,8 +15,6 @@ use crate::pages::AddQuery;
1515
1616#[ cfg( feature = "ssr" ) ]
1717use crate :: pages:: GLOBAL_STATE ;
18- #[ cfg( feature = "ssr" ) ]
19- use crate :: util:: cantor_pair;
2018pub mod view;
2119
2220// Search Result Element
@@ -53,7 +51,6 @@ pub async fn update_query(aq: AddQuery) -> Result<(), ServerFnError> {
5351// get_query get the result of the last query
5452// ie get a list of images.
5553#[ server]
56- #[ cfg_attr( feature = "ssr" , tracing:: instrument) ]
5754pub async fn get_query ( ) -> Result < SearchResult , ServerFnError > {
5855 use crate :: pages:: IMAGE_PREFIX ;
5956
@@ -64,7 +61,7 @@ pub async fn get_query() -> Result<SearchResult, ServerFnError> {
6461 . iter ( )
6562 . enumerate ( )
6663 . map ( |( i, path_rank) | {
67- let key = cantor_pair ( state. query_version , i) ;
64+ let key = crate :: util :: cantor_pair ( state. query_version , i) ;
6865
6966 // Construct URL from filename
7067 let url = path_rank
You can’t perform that action at this time.
0 commit comments