mirror of https://gitee.com/answerdev/answer.git
15 lines
245 B
Go
15 lines
245 B
Go
|
package activity_queue
|
||
|
|
||
|
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
|
||
|
}
|