Some checks are pending
ci/woodpecker/push/build Pipeline is pending approval
17 lines
286 B
Go
17 lines
286 B
Go
package test
|
|
|
|
import (
|
|
"math/rand"
|
|
"time"
|
|
|
|
"gitnet.fr/deblan/owncast-webhook/internal/store"
|
|
)
|
|
|
|
func GenerateFakeMessages() {
|
|
go func() {
|
|
for {
|
|
store.GetMessageStore().Add(store.TestMessage{})
|
|
time.Sleep(time.Duration(rand.Intn(3000-100)+100) * time.Millisecond)
|
|
}
|
|
}()
|
|
}
|