feat(输入输出): 统一输入输出与保存目标
build.yaml / build (push) Successful in 46s

This commit is contained in:
xiaoqidun committed 2026-10-19 09:29:36 +08:00
1 parent b06df462ea
commit e222cddabb
20 files changed
+264 -230

No files matched your search

+2 -2
View File
@@ -183,9 +183,9 @@ func (w *Writer) Write(data []byte) (int, error) {
return n, err
}
// Close 完成写入并替换目标,成功后刷新目标状态
// Commit 完成写入并替换目标,成功后刷新目标状态
// 返回: error 提交错误
func (w *Writer) Close() error {
func (w *Writer) Commit() error {
w.mu.Lock()
defer w.mu.Unlock()
if w.closed {