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.
17 lines
385 B
17 lines
385 B
package dao |
|
|
|
import ( |
|
"context" |
|
"strconv" |
|
|
|
"go-common/library/log" |
|
) |
|
|
|
// PubExtraRet pub extra msg into databus. |
|
func (d *Dao) PubExtraRet(c context.Context, mid int64, msg interface{}) (err error) { |
|
key := strconv.FormatInt(mid, 10) |
|
if err = d.dbExtraAnswerRet.Send(c, key, msg); err != nil { |
|
log.Error("d.dbExtraAnswerRet.Send(%s, %v) error (%v)", key, msg, err) |
|
} |
|
return |
|
}
|
|
|