server fix
This commit is contained in:
parent
7ac8b3f71b
commit
33765d5468
@ -37,7 +37,8 @@ async fn main() -> Result<()> {
|
|||||||
// file → non‑blocking writer (+ guard)
|
// file → non‑blocking writer (+ guard)
|
||||||
let file = OpenOptions::new()
|
let file = OpenOptions::new()
|
||||||
.create(true)
|
.create(true)
|
||||||
.append(true)
|
.write(true)
|
||||||
|
.truncate(true)
|
||||||
.open(&log_path)?;
|
.open(&log_path)?;
|
||||||
let (file_writer, guard) = non_blocking(file);
|
let (file_writer, guard) = non_blocking(file);
|
||||||
_guard = Some(guard);
|
_guard = Some(guard);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user