From fa298a2c30c358dbfa47fc123c6aca83fe9eb999 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 25 Jul 2015 21:32:04 +0800 Subject: #835: Realtime webhooks --- modules/setting/setting.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/setting') diff --git a/modules/setting/setting.go b/modules/setting/setting.go index b2ab3b46..2364c313 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() } -- cgit v1.2.3