优化消息队列持久化日志

This commit is contained in:
orgin
2022-12-01 14:19:02 +08:00
parent b1fee9bc57
commit 76c8541b34

View File

@@ -141,7 +141,7 @@ func (mp *MongoPersist) persistTopicData(collectionName string, topicData []Topi
_, err := s.Collection(mp.dbName, collectionName).InsertMany(ctx, documents)
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