Skip to content

Commit

Permalink
[PRMT-4204] Addressed PR comment https://github.com/nhsconnect/prm-re…
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-nhs committed Nov 30, 2023
1 parent f3da4a4 commit 8212919
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class RepoIncomingEventListener implements MessageListener {

// time gap between our EHR requests to allow EMIS to process other requests they might receive
@Value("${emisProcessingPeriodMilliseconds}")
private int emisProcessingPeriod;
private int emisProcessingPeriodMilliseconds;

@Override
public void onMessage(Message message) {
Expand All @@ -45,7 +45,7 @@ private RepoIncomingEvent parseMessage(Message message) throws JMSException {

private void waitForEmisProcessingPeriod() {
try {
Thread.sleep(emisProcessingPeriod);
Thread.sleep(emisProcessingPeriodMilliseconds);
} catch (InterruptedException e) {
log.error("Caught interruptedException waiting for EMIS processing period", e);
}
Expand Down

0 comments on commit 8212919

Please sign in to comment.