mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-04 13:52:26 +08:00
fix: mongodb current close
This commit is contained in:
2
pkg/cache/store/mongodb.go
vendored
2
pkg/cache/store/mongodb.go
vendored
@@ -311,6 +311,8 @@ func (db *mongodb) LoadArticleList(ctx context.Context, search SearchArticles) (
|
||||
if err != nil {
|
||||
return nil, 0, err
|
||||
}
|
||||
defer cur.Close(ctx)
|
||||
|
||||
var articles model.SortedArticles
|
||||
for cur.Next(ctx) {
|
||||
obj := model.Article{}
|
||||
|
||||
Reference in New Issue
Block a user