Skip to content

Commit

Permalink
fix: bump CSV logging crates
Browse files Browse the repository at this point in the history
  • Loading branch information
Banyc committed Jan 14, 2024
1 parent 19fc38d commit a5f1417
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ members = [
async-speed-limit = { version = "0.4", features = ["tokio"] }
bincode = "1"
bytes = "1"
csv_logger = { git = "https://github.com/Banyc/csv_logger.git", rev = "48e4e8fb4ddfeb97e7ea919da25231c0d8fb8e7b" }
csv_logger = { git = "https://github.com/Banyc/csv_logger.git", rev = "d63ac71c4eeb55268102695b095fb6bf13b7ee8f" }
metrics = "0.22"
metrics-exporter-prometheus = { version = "0.13", default-features = false }
monitor_table = { git = "https://github.com/Banyc/monitor_table.git", rev = "f9cbe7a0e792d793adbe5627402254b0c9eee46b" }
mptcp = { git = "https://github.com/Banyc/mptcp.git", rev = "9f023f2db96fba80ae044d0101f7955975272dd5" }
openssl = "0.10"
serde = "1"
strict-num = "0.2"
table_log = { git = "https://github.com/Banyc/table_log.git", rev = "26a3806ba29a2748c9e5b5b7bf1f75a0b417a898" }
table_log = { git = "https://github.com/Banyc/table_log.git", rev = "eb936cc4521dd62854a1272da6908f7d70261c2c" }
thiserror = "1"
tokio = "1"
tokio-util = "0.7"
Expand Down
4 changes: 2 additions & 2 deletions server/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{net::SocketAddr, path::PathBuf, sync::Arc};
use std::{net::SocketAddr, num::NonZeroUsize, path::PathBuf, sync::Arc};

use axum::{
extract::{Query, State},
Expand Down Expand Up @@ -39,7 +39,7 @@ async fn main() -> AnyResult {
csv_logger::init(
path,
csv_logger::RotationPolicy {
max_records: 1024 * 64,
max_records: NonZeroUsize::new(1024 * 64).unwrap(),
max_epochs: 4,
},
);
Expand Down

0 comments on commit a5f1417

Please sign in to comment.