Skip to content

Commit 693ead2

Browse files
committed
also ignore 429 errors. Exafunction#177
1 parent 02420cd commit 693ead2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/codeium/api.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ function Server:request_completion(document, editor_options, other_documents, ca
401401
other_documents = other_documents,
402402
}, function(body, err)
403403
if err then
404-
if err.status >= 500 or err.status == 408 then
404+
if err.status >= 500 or err.status == 408 or err.status == 429 then
405405
-- Service error or Timeout error
406406
return complete(false, nil)
407407
end

0 commit comments

Comments
 (0)