diff --git a/mod-audit-server/src/main/java/org/folio/verticle/acquisition/PieceEventConsumersVerticle.java b/mod-audit-server/src/main/java/org/folio/verticle/acquisition/PieceEventConsumersVerticle.java index 4d59c16..ab4d218 100644 --- a/mod-audit-server/src/main/java/org/folio/verticle/acquisition/PieceEventConsumersVerticle.java +++ b/mod-audit-server/src/main/java/org/folio/verticle/acquisition/PieceEventConsumersVerticle.java @@ -5,17 +5,14 @@ import org.folio.kafka.AsyncRecordHandler; import org.folio.util.AcquisitionEventType; import org.folio.verticle.AbstractConsumersVerticle; -import org.springframework.beans.factory.annotation.Qualifier; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; @Component public class PieceEventConsumersVerticle extends AbstractConsumersVerticle { - private final AsyncRecordHandler pieceEventsHandler; - - public PieceEventConsumersVerticle(@Qualifier("pieceEventsHandler") AsyncRecordHandler pieceEventsHandler) { - this.pieceEventsHandler = pieceEventsHandler; - } + @Autowired + private AsyncRecordHandler pieceEventsHandler; @Override public List getEvents() {