Test out the webhook
This commit is contained in:
12
main.go
12
main.go
@@ -89,9 +89,15 @@ func main() {
|
||||
}
|
||||
}()
|
||||
|
||||
for i := 0; i < 10; i++ {
|
||||
webhook.Post("eve-pi", "test", "test")
|
||||
}
|
||||
// for i := 0; i < 100; i++ {
|
||||
// logger.Info("Sending test webhook %d", i)
|
||||
// go func() {
|
||||
// err := webhook.Post("EvePI", "test", "test" + strconv.Itoa(i))
|
||||
// if err != nil {
|
||||
// logger.Error("Failed to send test webhook %d: %v", i, err)
|
||||
// }
|
||||
// }()
|
||||
// }
|
||||
|
||||
// Listen for SIGINT and gracefully shut down the server
|
||||
sigCh := make(chan os.Signal, 1)
|
||||
|
||||
Reference in New Issue
Block a user