keon94 commented on code in PR #5570:
URL: 
https://github.com/apache/incubator-devlake/pull/5570#discussion_r1241571016


##########
backend/helpers/pluginhelper/api/batch_save.go:
##########
@@ -102,17 +102,21 @@ func (c *BatchSave) Add(slot interface{}) errors.Error {
        c.current++
        // flush out into database if max outed
        if c.current == c.size {
-               return c.Flush()
+               return c.flushWithoutLocking()
        } else if c.current%100 == 0 {
                c.log.Debug("batch save current: %d", c.current)
        }
        return nil
 }
 

Review Comment:
   the comments should say "maxed out" not "max outed"



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to