Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasbm committed Jun 9, 2021
1 parent 19f1338 commit 475b822
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/src/main/java/amosproj/server/Scheduler.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package amosproj.server;

import amosproj.server.linter.Linter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.TaskScheduler;
import org.springframework.scheduling.support.CronTrigger;
import org.springframework.stereotype.Service;

@Service
public class Scheduler {

@Autowired
private TaskScheduler executor;

Expand Down
3 changes: 2 additions & 1 deletion server/src/main/java/amosproj/server/linter/Crawler.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ public class Crawler {
private Long size;

public Crawler(GitLab gitLab, Scheduler scheduler, Linter linter) {
// set autowired
this.gitLab = gitLab;
this.linter = linter;

// init crawler status
crawlerActive = new AtomicBoolean(false);
progress = Config.getConfigNode().get("settings").get("crawler").get("status").get("inactive").asText();
timeTaken = 0L;
Expand Down

0 comments on commit 475b822

Please sign in to comment.