Skip to content

Commit

Permalink
Removed sleep. Not necessary after testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
chris.ditcher authored and chris.ditcher committed Aug 14, 2024
1 parent ff1215b commit 49e23f5
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,10 @@ public SchoolMovedService(SchoolService schoolService) {
public void processEvent(final MoveSchoolData moveSchoolData, EventEntity eventEntity) {
log.debug("Processing School Moved");
try{
// school move sometimes not fully processed, sleep 1 second
Thread.sleep(1000);
schoolService.updateSchoolCache(Arrays.asList(moveSchoolData.getFromSchoolId(), moveSchoolData.getToSchool().getSchoolId()));
this.updateEventWithHistory(eventEntity);
} catch (ServiceException e) {
log.error(e.getMessage());
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
}
}

Expand Down

0 comments on commit 49e23f5

Please sign in to comment.