(
&self,
ctx: &Context<'_>,
search_string: Option<String>,
)
| 84 | } |
| 85 | |
| 86 | async fn topic_live_search( |
| 87 | &self, |
| 88 | ctx: &Context<'_>, |
| 89 | search_string: Option<String>, |
| 90 | ) -> Result<LiveSearchTopicsPayload> { |
| 91 | let result = ctx |
| 92 | .data_unchecked::<Store>() |
| 93 | .search_topics(search_string) |
| 94 | .await?; |
| 95 | |
| 96 | Ok(LiveSearchTopicsPayload(result)) |
| 97 | } |
| 98 | |
| 99 | async fn stats(&self, ctx: &Context<'_>) -> Result<ViewStats> { |
| 100 | ctx.data_unchecked::<Store>().view_stats().await?.try_into() |
nothing calls this directly
no test coverage detected