6 Commits

Author SHA1 Message Date
c39a39a889 Remove unnecessary lifetime param and use new RNG API
Some checks failed
Build docker image / Build-Docker-Image (push) Has been cancelled
rust-clippy analyze / Run rust-clippy analyzing (push) Has been cancelled
2025-10-14 17:58:03 +02:00
b1c9f2ccf8 Merge pull request #45 from flibusta-apps/dependabot/github_actions/github/codeql-action-4
Bump github/codeql-action from 3 to 4
2025-10-14 17:57:50 +02:00
dependabot[bot]
b4b0a10ce7 Bump github/codeql-action from 3 to 4
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3 to 4.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-08 08:04:11 +00:00
8e4c3303f2 Merge pull request #43 from flibusta-apps/dependabot/github_actions/actions/checkout-5
Some checks failed
Build docker image / Build-Docker-Image (push) Has been cancelled
rust-clippy analyze / Run rust-clippy analyzing (push) Has been cancelled
Bump actions/checkout from 4 to 5
2025-09-10 17:06:17 +02:00
56487b36b6 Update deps
Some checks failed
Build docker image / Build-Docker-Image (push) Has been cancelled
rust-clippy analyze / Run rust-clippy analyzing (push) Has been cancelled
2025-08-31 14:01:41 +02:00
dependabot[bot]
534bcda47b Bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-19 16:56:57 +00:00
4 changed files with 232 additions and 248 deletions

View File

@@ -28,7 +28,7 @@ jobs:
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Install Rust toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af #@v1
@@ -49,7 +49,7 @@ jobs:
continue-on-error: true
- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: rust-clippy-results.sarif
wait-for-processing: true

464
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -25,18 +25,18 @@ tokio = { version = "1.44.2", features = ["full"] }
tracing = "0.1.41"
tracing-subscriber = { version = "0.3.19", features = ["env-filter"]}
sentry-tracing = "0.41.0"
sentry-tracing = "0.42.0"
tower-http = { version = "0.6.2", features = ["trace"] }
axum = { version = "0.8.1", features = ["json"] }
axum-extra = { version ="0.10.0", features = ["query"] }
axum-prometheus = "0.8.0"
axum-prometheus = "0.9.0"
serde = { version = "1.0.219", features = ["derive"] }
serde_json = { version = "1.0.140", features = ["raw_value"] }
sentry = { version = "0.41.0", features = ["debug-images"] }
sentry = { version = "0.42.0", features = ["debug-images"] }
meilisearch-sdk = "0.28.0"
meilisearch-sdk = "0.29.1"
rand = "0.9.0"

View File

@@ -4,7 +4,7 @@ use serde::de::DeserializeOwned;
use crate::meilisearch::GetId;
pub async fn get_random_item<'a, T>(index: Index, filter: String) -> i32
pub async fn get_random_item<T>(index: Index, filter: String) -> i32
where
T: DeserializeOwned + GetId + 'static + Send + Sync,
{
@@ -15,7 +15,7 @@ where
.await
.unwrap();
let offset: usize = rand::thread_rng().gen_range(0..result.estimated_total_hits.unwrap());
let offset: usize = rand::rng().random_range(0..result.estimated_total_hits.unwrap());
let result = index
.search()