answer/internal/service/activity_queue/activity_queue.go

15 lines
245 B
Go
Raw Normal View History

2022-11-21 19:28:02 +08:00
package activity_queue
2022-11-21 17:59:52 +08:00
import (
"github.com/answerdev/answer/internal/schema"
)
var (
ActivityQueue = make(chan *schema.ActivityMsg, 128)
)
// AddActivity add new activity
func AddActivity(msg *schema.ActivityMsg) {
ActivityQueue <- msg
}