summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-07-25 21:32:04 +0800
committerUnknwon <u@gogs.io>2015-07-25 21:32:04 +0800
commitfa298a2c30c358dbfa47fc123c6aca83fe9eb999 (patch)
tree2179828e8b7c8ebafe3121506f26d52cb0350c63 /modules/setting
parent2b1442f3dfa3558f4e1a9dd5b1dbb50cf348e6e0 (diff)
downloadgitea-fa298a2c30c358dbfa47fc123c6aca83fe9eb999.tar.gz
gitea-fa298a2c30c358dbfa47fc123c6aca83fe9eb999.zip
#835: Realtime webhooks
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index b2ab3b460b..2364c313a5 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -76,7 +76,7 @@ var (
// Webhook settings.
Webhook struct {
- TaskInterval int
+ QueueLength int
DeliverTimeout int
SkipTLSVerify bool
}
@@ -555,7 +555,7 @@ func newNotifyMailService() {
func newWebhookService() {
sec := Cfg.Section("webhook")
- Webhook.TaskInterval = sec.Key("TASK_INTERVAL").MustInt(1)
+ Webhook.QueueLength = sec.Key("QUEUE_LENGTH").MustInt(1000)
Webhook.DeliverTimeout = sec.Key("DELIVER_TIMEOUT").MustInt(5)
Webhook.SkipTLSVerify = sec.Key("SKIP_TLS_VERIFY").MustBool()
}