Skip to content

Commit c5a4220

Browse files
author
WebFreak001
committed
made imports compiling longer than 500ms only retry every 10 minutes
1 parent f46778c commit c5a4220

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/served/extension.d

+2-1
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,8 @@ int getImportCompilationTime(string code, string module_)
12261226
{
12271227
if (exist.code != code)
12281228
continue;
1229-
if (now - exist.at < (exist.ret >= 30 ? 60.seconds : 20.seconds) || module_.startsWith("std."))
1229+
if (now - exist.at < (exist.ret >= 500 ? 10.minutes : exist.ret >= 30
1230+
? 60.seconds : 20.seconds) || module_.startsWith("std."))
12301231
return exist.ret;
12311232
else
12321233
{

0 commit comments

Comments
 (0)