Skip to content

Commit

Permalink
fix error msg + remove redundant env in compose
Browse files Browse the repository at this point in the history
  • Loading branch information
bragov4ik committed Apr 17, 2024
1 parent 323c96c commit 52a0760
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion stats/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ services:
- STATS__SERVER__HTTP__ENABLED=true
- STATS__SERVER__HTTP__ADDR=0.0.0.0:8050
- STATS__SERVER__HTTP__MAX_BODY_SIZE=2097152
- STATS__LIMITS__REQUEST_INTERVAL_LIMIT_DAYS=36500
- RUST_BACKTRACE=1
ports:
- 8080:8050
1 change: 1 addition & 0 deletions stats/stats-server/src/read_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ impl From<LimitsSettings> for ReadLimits {
fn map_read_error(err: ReadError) -> Status {
match &err {
ReadError::NotFound(_) => Status::not_found(err.to_string()),
ReadError::IntervalLimitExceeded(_) => Status::invalid_argument(err.to_string()),
_ => {
tracing::error!(err = ?err, "internal read error");
Status::internal(err.to_string())
Expand Down

0 comments on commit 52a0760

Please sign in to comment.