Skip to content

Commit

Permalink
Reducec optimization level for ci builds
Browse files Browse the repository at this point in the history
  • Loading branch information
var77 committed Mar 14, 2024
1 parent e607d7f commit 4d1aeba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ strip = true
panic = "unwind"

[profile.ci-build]
inherits = "release"
opt-level = 2
inherits = "dev"
opt-level = 1
codegen-units = 8
2 changes: 1 addition & 1 deletion lantern_cli/src/http_server/collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use bytes::BytesMut;
use futures::SinkExt;
use itertools::Itertools;
use regex::Regex;
use std::{collections::HashMap, time::Instant};
use std::collections::HashMap;

use actix_web::{
delete,
Expand Down
2 changes: 1 addition & 1 deletion lantern_cli/tests/http_server_test_with_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ async fn test_index_create() -> AnyhowVoidResult {
.body(body.as_bytes())?;

let response = isahc::send(request)?;
let mut body: Vec<u8> = Vec::new();
let body: Vec<u8> = Vec::new();
let body_json = String::from_utf8(body)?;
println!("Response: {:?}", body_json);
assert_eq!(response.status(), StatusCode::from_u16(200)?);
Expand Down

0 comments on commit 4d1aeba

Please sign in to comment.