You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
464 B
20 lines
464 B
package dao |
|
|
|
import ( |
|
"context" |
|
"strconv" |
|
|
|
"go-common/app/service/main/history/model" |
|
"go-common/library/log" |
|
"go-common/library/stat/prom" |
|
) |
|
|
|
// AddHistoryMessage . |
|
func (d *Dao) AddHistoryMessage(c context.Context, k int, msg []*model.Merge) (err error) { |
|
key := strconv.Itoa(k) |
|
prom.BusinessInfoCount.Add("dbus-"+key, int64(len(msg))) |
|
if err = d.mergeDbus.Send(c, key, msg); err != nil { |
|
log.Error("Pub(%s,%+v) error(%v)", key, msg, err) |
|
} |
|
return |
|
}
|
|
|