From 8212919ec3fc6e7a7fb69b5c0fe121e0bd9502c5 Mon Sep 17 00:00:00 2001 From: martin-nhs Date: Thu, 30 Nov 2023 10:12:32 +0000 Subject: [PATCH] [PRMT-4204] Addressed PR comment https://github.com/nhsconnect/prm-repo-ehr-transfer-service/pull/106/files#r1407692769. --- .../repo_incoming/RepoIncomingEventListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/uk/nhs/prm/repo/ehrtransferservice/repo_incoming/RepoIncomingEventListener.java b/src/main/java/uk/nhs/prm/repo/ehrtransferservice/repo_incoming/RepoIncomingEventListener.java index 636140655..29f93beac 100644 --- a/src/main/java/uk/nhs/prm/repo/ehrtransferservice/repo_incoming/RepoIncomingEventListener.java +++ b/src/main/java/uk/nhs/prm/repo/ehrtransferservice/repo_incoming/RepoIncomingEventListener.java @@ -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) { @@ -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); }