rename MAX_REQUESTS to MAX_EMPTY_REQUESTS in jira agent

Konstantin Nazarov 10 年之前
父节点
当前提交
38cec76090
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/models/agents/jira_agent.rb

+ 2 - 2
app/models/agents/jira_agent.rb

@@ -35,7 +35,7 @@ module Agents
35 35
     MD
36 36
 
37 37
     default_schedule "every_10m"
38
-    MAX_REQUESTS = 10
38
+    MAX_EMPTY_REQUESTS = 10
39 39
 
40 40
     def default_options
41 41
       {
@@ -132,7 +132,7 @@ module Agents
132 132
           request_limit+=1
133 133
         end
134 134
 
135
-        if request_limit > MAX_REQUESTS
135
+        if request_limit > MAX_EMPTY_REQUESTS
136 136
           raise RuntimeError("There is no progress while fetching issues")
137 137
         end
138 138