Commit b00bf332 authored by 赵啸非's avatar 赵啸非

修改文件存储路径

parent 9c2d6dcc
...@@ -71,6 +71,7 @@ public class DefaultTbCoreConsumerService extends AbstractConsumerService<TbQueu ...@@ -71,6 +71,7 @@ public class DefaultTbCoreConsumerService extends AbstractConsumerService<TbQueu
} }
mainConsumer.commit(); mainConsumer.commit();
Thread.sleep(200);
} catch (Exception e) { } catch (Exception e) {
if (!stopped) { if (!stopped) {
// log.warn("Failed to obtain messages from queue.", e); // log.warn("Failed to obtain messages from queue.", e);
...@@ -111,6 +112,7 @@ public class DefaultTbCoreConsumerService extends AbstractConsumerService<TbQueu ...@@ -111,6 +112,7 @@ public class DefaultTbCoreConsumerService extends AbstractConsumerService<TbQueu
} }
consumer.commit(); consumer.commit();
Thread.sleep(200);
} catch (Exception e) { } catch (Exception e) {
if (!stopped) { if (!stopped) {
try { try {
......
...@@ -59,6 +59,7 @@ public class TbRabbitMqConsumerTemplate<T extends TbQueueMsg> extends AbstractTb ...@@ -59,6 +59,7 @@ public class TbRabbitMqConsumerTemplate<T extends TbQueueMsg> extends AbstractTb
List<GetResponse> result = queues.stream() List<GetResponse> result = queues.stream()
.map(queue -> { .map(queue -> {
try { try {
GetResponse getResponse = channel.basicGet(queue, true); GetResponse getResponse = channel.basicGet(queue, true);
return getResponse; return getResponse;
} catch (IOException e) { } catch (IOException e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment