mirror of
https://github.com/Nanaloveyuki/BitLogger.git
synced 2026-09-08 02:14:01 +00:00
⬆️ upgrade async and replace native file FFI
升级 async 依赖,迁移到 MoonBit 原生 async/fs 文件接口,移除项目自有 C FFI,并固定文本文件为 LF。CI 全部通过。
This commit is contained in:
@@ -5,7 +5,7 @@ async test "native async file lifecycle flushes rotates and restarts" {
|
||||
} else {
|
||||
let path = "logs/bitlogger-async-native-e2e.log"
|
||||
let first_flushes : Ref[Int] = Ref(0)
|
||||
let first_sink = @bitlogger.file_sink(
|
||||
let first_sink = @bitlogger.file_sink_async(
|
||||
path,
|
||||
append=false,
|
||||
auto_flush=false,
|
||||
@@ -47,7 +47,7 @@ async test "native async file lifecycle flushes rotates and restarts" {
|
||||
inspect(first_sink.close(), content="true")
|
||||
|
||||
let restart_flushes : Ref[Int] = Ref(0)
|
||||
let restarted_sink = @bitlogger.file_sink(
|
||||
let restarted_sink = @bitlogger.file_sink_async(
|
||||
path,
|
||||
append=true,
|
||||
auto_flush=false,
|
||||
|
||||
Reference in New Issue
Block a user