Skip to content

Commit

Permalink
ensure topics in consumer only
Browse files Browse the repository at this point in the history
  • Loading branch information
hknots committed Sep 6, 2024
1 parent 842c0ee commit d02e60f
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@
public class RegistrationService {

private final AdapterContractProducer adapterContractProducer;
private final AdapterRegistrationTopicService adapterRegistrationTopicService;
private final AdapterContractContext adapterContractContext;

public void register(AdapterContract adapterContract) {
adapterRegistrationTopicService.ensureTopics(adapterContract);
adapterContractProducer.send(adapterContract, adapterContract.getOrgId());
adapterContractContext.add(adapterContract);
log.info("New adapter has registered: {}", adapterContract.getAdapterId());
Expand Down

0 comments on commit d02e60f

Please sign in to comment.