Skip to content

Commit

Permalink
Refreshes resources every hour
Browse files Browse the repository at this point in the history
  • Loading branch information
IliyanID committed Sep 19, 2021
1 parent aca9174 commit 7eb185d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Back-End/src/main/java/com/tco/Server/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@

public class Server
{
//private final int delay = 10000; // delay for 10 sec.
private final int period = 3600000 * 24; // repeat every 24 hours.
private final int period = 3600000; // repeat every hour.
private final Logger log = LoggerFactory.getLogger(Server.class);
private Etsy etsy;
private Instagram instagram;
Expand Down Expand Up @@ -62,7 +61,7 @@ public void run() {
log.info("Refreshing APIKey");
new RefreshToken();
}
}, period*10, period*10);
}, period*10*24, period*10*24);

}

Expand Down

0 comments on commit 7eb185d

Please sign in to comment.