Skip to content

Commit

Permalink
Update mongo.go
Browse files Browse the repository at this point in the history
  • Loading branch information
PxyUp authored Jul 29, 2019
1 parent f689a15 commit ca401ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongo/mongo.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ func (c *MongoConnector) GetIterator(collectionName string, findPredicate bson.M
}

func (iter *MongoIterator) Close() error {
iter.Session.Close()
err := iter.Iter.Close()
if err != nil {
return err
}
iter.Session.Close()
return nil
}

0 comments on commit ca401ee

Please sign in to comment.