Skip to content

Commit

Permalink
code for mongodb
Browse files Browse the repository at this point in the history
  • Loading branch information
pinguo-guzhongzhi committed Sep 21, 2024
1 parent fef74e7 commit 0bb00b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapter/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func (m *Mongodb) PipeAll(query interface{}, doc interface{}) error {

// FindAll query all doc
func (m *Mongodb) FindAll(filter interface{}, doc interface{}, options ...bson.M) (err error) {
profile := "mongodb.FindOne"
profile := "mongodb.FindAll"
m.Context().ProfileStart(profile)
defer m.Context().ProfileStop(profile)
ctx, cFunc := context.WithTimeout(context.Background(), m.client.WriteTimeout())
Expand Down

0 comments on commit 0bb00b0

Please sign in to comment.