This commit is contained in:
ykomissarov committed 2020-01-09 18:00:02 +03:00
1 parent 3d02fa550d
commit 75abb294c0
1 file changed
+2
+2
View File
@@ -103,7 +103,9 @@ type requestsRepository struct {
}
func (r *requestsRepository) Insert(model []entity.Request) error {
r.mx.Lock()
r.cache = append(r.cache, model...)
r.mx.Unlock()
r.wg.Done()
return nil
}