pinakes-server: bound session concurrency; handle JoinError; make analytics

retention configurable

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Iaa35af821862eeadba0a4f384b2aec2c6a6a6964
This commit is contained in:
raf 2026-03-07 16:55:43 +03:00
commit 01fc2021c0
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
6 changed files with 42 additions and 16 deletions

View file

@ -48,6 +48,13 @@ impl IntoResponse for ApiError {
(StatusCode::UNAUTHORIZED, msg.clone())
},
PinakesError::Authorization(msg) => (StatusCode::FORBIDDEN, msg.clone()),
PinakesError::Serialization(msg) => {
tracing::error!(error = %msg, "serialization error");
(
StatusCode::INTERNAL_SERVER_ERROR,
"data serialization error".to_string(),
)
},
PinakesError::Config(_) => {
tracing::error!(error = %self.0, "configuration error");
(