Browse Source

Merge pull request 'fix-1365' (#1373) from fix-1311 into V20220125

Reviewed-on: https://git.openi.org.cn/OpenI/aiforge/pulls/1373
Reviewed-by: lewis <747342561@qq.com>
pull/1411/head
lewis 3 years ago
parent
commit
b66b53d00d
2 changed files with 5 additions and 1 deletions
  1. +4
    -1
      models/repo_watch.go
  2. +1
    -0
      services/socketwrap/clientManager.go

+ 4
- 1
models/repo_watch.go View File

@@ -305,7 +305,10 @@ func NotifyWatchersActions(acts []*Action) error {
return err return err
} }
} }
return sess.Commit()

err := sess.Commit()
producer(acts...)
return err
} }


func watchIfAuto(e Engine, userID, repoID int64, isWrite bool) error { func watchIfAuto(e Engine, userID, repoID int64, isWrite bool) error {


+ 1
- 0
services/socketwrap/clientManager.go View File

@@ -50,6 +50,7 @@ func (h *ClientsManager) Run() {
} }
case message := <-models.ActionChan: case message := <-models.ActionChan:
if isInOpTypes(opTypes, message.OpType) { if isInOpTypes(opTypes, message.OpType) {
message.Comment = nil
LastActionsQueue.Push(message) LastActionsQueue.Push(message)
for _, client := range h.Clients.Keys() { for _, client := range h.Clients.Keys() {
select { select {


Loading…
Cancel
Save