Skip to content

Commit

Permalink
Extract constant
Browse files Browse the repository at this point in the history
  • Loading branch information
PyvesB committed Jul 16, 2024
1 parent 74b7c79 commit 91bb48c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public class SolargraphStreamConnectionProvider extends ProcessStreamConnectionP

private static final AtomicBoolean HAS_DISPLAYED_NOT_FOUND_WARNING = new AtomicBoolean();
private static final AtomicBoolean HAS_UPDATED_SOLARGRAPH = new AtomicBoolean();
private static final Long SOLARGRAPH_UPDATE_DELAY = 30000L;

public SolargraphStreamConnectionProvider() {
super(getSolargraphCommand(), System.getProperty("user.dir"));
Expand All @@ -57,7 +58,7 @@ public void start() throws IOException {
}
super.start();
if (UPDATE_GEM.getValue() && !HAS_UPDATED_SOLARGRAPH.getAndSet(true)) {
GemHelper.scheduleUpdate("Solargraph", 30000L, GEM_PATH);
GemHelper.scheduleUpdate("Solargraph", SOLARGRAPH_UPDATE_DELAY, GEM_PATH);
}
}

Expand Down

0 comments on commit 91bb48c

Please sign in to comment.