refactored
This commit is contained in:
parent
237c288050
commit
e5c5aa705f
@ -1,4 +1,4 @@
|
|||||||
|
TB_QUEUE_TYPE=kafka
|
||||||
REMOTE_JS_EVAL_REQUEST_TOPIC=js_eval.requests
|
REMOTE_JS_EVAL_REQUEST_TOPIC=js_eval.requests
|
||||||
TB_KAFKA_SERVERS=kafka:9092
|
TB_KAFKA_SERVERS=kafka:9092
|
||||||
LOGGER_LEVEL=info
|
LOGGER_LEVEL=info
|
||||||
|
|||||||
@ -74,11 +74,13 @@ function AwsSqsProducer() {
|
|||||||
|
|
||||||
const queues = await getQueues();
|
const queues = await getQueues();
|
||||||
|
|
||||||
|
if (queues) {
|
||||||
queues.forEach(queueUrl => {
|
queues.forEach(queueUrl => {
|
||||||
const delimiterPosition = queueUrl.lastIndexOf('/');
|
const delimiterPosition = queueUrl.lastIndexOf('/');
|
||||||
const queueName = queueUrl.substring(delimiterPosition + 1);
|
const queueName = queueUrl.substring(delimiterPosition + 1);
|
||||||
queueUrls.set(queueName, queueUrl);
|
queueUrls.set(queueName, queueUrl);
|
||||||
})
|
});
|
||||||
|
}
|
||||||
|
|
||||||
parseQueueProperties();
|
parseQueueProperties();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user