优化本地数据库关闭相关代码

This commit is contained in:
GoEdgeLab
2023-06-23 21:32:38 +08:00
parent 09e31470ff
commit 5749a37dce
5 changed files with 147 additions and 27 deletions

View File

@@ -0,0 +1,7 @@
// Copyright 2023 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn .
package dbs
func IsClosedErr(err error) bool {
return err == errDBIsClosed
}