优化消息队列服务日志

This commit is contained in:
orgin
2022-11-29 17:25:34 +08:00
parent 284d43dc71
commit b1fee9bc57

View File

@@ -398,8 +398,7 @@ func (mp *MongoPersist) PersistIndex(topic string, customerId string, index uint
ctx, cancel := s.GetDefaultContext() ctx, cancel := s.GetDefaultContext()
defer cancel() defer cancel()
ret, err := s.Collection(mp.dbName, CustomerCollectName).UpdateOne(ctx, condition, updata, UpdateOptionsOpts...) _, err := s.Collection(mp.dbName, CustomerCollectName).UpdateOne(ctx, condition, updata, UpdateOptionsOpts...)
fmt.Println(ret)
if err != nil { if err != nil {
log.SError("PersistIndex fail :", err.Error()) log.SError("PersistIndex fail :", err.Error())
} }