Skip to content

Commit

Permalink
feat(backend): release testcase size requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
Eason0729 committed Sep 2, 2024
1 parent 5784a24 commit a69d232
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion backend/migration/src/m20240821_000001_create_tag.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::m20231207_000001_create_table::Problem;
use sea_orm::{DatabaseBackend, Statement};
use sea_orm_migration::prelude::*;

#[derive(Iden)]
Expand Down
2 changes: 1 addition & 1 deletion backend/src/util/bound.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ impl BoundCheck for CreateSubmitRequest {

impl BoundCheck for CreateTestcaseRequest {
fn check(&self) -> bool {
self.info.input.len() > 256 * 1024 || self.info.output.len() > 256 * 1024
self.info.input.len() > 16 * 1024 * 1024 || self.info.output.len() > 16 * 1024 * 1024
}
}

Expand Down
4 changes: 2 additions & 2 deletions docker/dev/backend/config/config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
address = "0.0.0.0:8080"
log = 0
opentelemetry = "grpc://jaeger:4317"
log = 1
# opentelemetry = "http://jaeger:4317"
default_role = "user"

[database]
Expand Down

0 comments on commit a69d232

Please sign in to comment.