mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-27 17:24:44 +08:00
优化消息队列持久化日志
This commit is contained in:
@@ -141,7 +141,7 @@ func (mp *MongoPersist) persistTopicData(collectionName string, topicData []Topi
|
|||||||
|
|
||||||
_, err := s.Collection(mp.dbName, collectionName).InsertMany(ctx, documents)
|
_, err := s.Collection(mp.dbName, collectionName).InsertMany(ctx, documents)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.SError("PersistTopicData InsertMany fail,collect name is ", collectionName)
|
log.SError("PersistTopicData InsertMany fail,collect name is ", collectionName," error:",err.Error())
|
||||||
|
|
||||||
//失败最大重试数量
|
//失败最大重试数量
|
||||||
return retryCount >= mp.retryCount
|
return retryCount >= mp.retryCount
|
||||||
|
|||||||
Reference in New Issue
Block a user