refactor(重构提升): 优化缓存验签与界面
build.yaml / build (push) Successful in 44s

This commit is contained in:
xiaoqidun committed 2026-09-29 00:13:55 +08:00
1 parent 4d0a909de5
commit b85d7457c1
13 files changed
+98 -42

No files matched your search

+4 -2
View File
@@ -55,11 +55,13 @@ type Reader struct {
encryption *encryptionState
}
// Close 关闭阅读器
// Close 关闭阅读器持有的文件,重复调用不再关闭底层文件
// 返回: error 错误信息
func (r *Reader) Close() error {
if r.Closer != nil {
return r.Closer.Close()
closer := r.Closer
r.Closer = nil
return closer.Close()
}
return nil
}