Fix migration
This commit is contained in:
parent
72b7ec7a3f
commit
6b7d0762dc
@ -1,7 +1,9 @@
|
||||
package com.knecon.fforesight.llm.service.queue;
|
||||
|
||||
import static com.knecon.fforesight.llm.service.QueueNames.LLM_NER_DLQ;
|
||||
import static com.knecon.fforesight.llm.service.QueueNames.LLM_NER_REQUEST_EXCHANGE;
|
||||
|
||||
import org.springframework.amqp.core.DirectExchange;
|
||||
import org.springframework.amqp.core.Queue;
|
||||
import org.springframework.amqp.core.QueueBuilder;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
@ -13,8 +15,15 @@ import lombok.RequiredArgsConstructor;
|
||||
@RequiredArgsConstructor
|
||||
public class MessagingConfiguration {
|
||||
|
||||
|
||||
@Bean
|
||||
public Queue llmNerResponseDLQ() {
|
||||
public DirectExchange llmNerRequestExchange() {
|
||||
|
||||
return new DirectExchange(LLM_NER_REQUEST_EXCHANGE);
|
||||
}
|
||||
|
||||
@Bean
|
||||
public Queue llmNerDLQ() {
|
||||
|
||||
return QueueBuilder.durable(LLM_NER_DLQ).build();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user