Skip to content

Commit

Permalink
Merge pull request #48 from open-source-go/del_dev
Browse files Browse the repository at this point in the history
ack时判断成功状态以避免一个会引起崩溃的队列顺序问题
  • Loading branch information
withlin authored Feb 27, 2020
2 parents 33ac8c2 + 0bb1a3f commit 96bf8b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/simple_canal_connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,10 @@ func (c *SimpleCanalConnector) Get(batchSize int32, timeOut *int64, units *int32
if err != nil {
return nil, err
}
c.Ack(message.Id)
err = c.Ack(message.Id)
if err != nil {
return nil, err
}
return message, nil
}

Expand Down

0 comments on commit 96bf8b8

Please sign in to comment.