Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
xstefank committed May 5, 2018
1 parent 33cc809 commit b635708
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 83 deletions.
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,3 @@ services:
- ./data/db:/data/db
ports:
- 27017:27017
#command: mongod --smallfiles --logpath=/dev/null # --quiet
1 change: 0 additions & 1 deletion invoice-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ dependencies {
compileOnly 'org.projectlombok:lombok:1.16.18'


// compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-web')
compileOnly('org.projectlombok:lombok:1.16.18')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public CompletableFuture<EntityWithIdAndVersion<InvoiceAggregate>> prepareInvoic
}

public void compensateInvoice(ParticipantFailureInfo failureInfo) {
if (failureInfo.getId() == "N/A") {
if (failureInfo.getId().equals("N/A")) {
confirmCompensation(failureInfo.getSagaId());
}
aggregateRepository.update(failureInfo.getId(), new CompensateInvoiceCommand(failureInfo));
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion order-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ dependencies {
compileOnly 'org.projectlombok:lombok:1.16.18'


// compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-web')
compileOnly('org.projectlombok:lombok:1.16.18')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

public class ProcessShipmentCommand implements OrderSagaCommand {


private ShipmentInfo shipmentInfo;

public ProcessShipmentCommand(ShipmentInfo shipmentInfo) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import org.learn.eventuate.coreapi.ParticipantFailureInfo;
import org.learn.eventuate.coreapi.ShipmentInfo;
import org.learn.eventuate.orderservice.domain.service.OrderSagaService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
Expand All @@ -18,8 +16,6 @@ public class OrderSagaController {

@Autowired
public OrderSagaService orderSagaService;
private Logger log = LoggerFactory.getLogger(OrderSagaController.class);


@RequestMapping(method = RequestMethod.POST, path = "/shipment")
public String shipmentResponse(@RequestBody ShipmentInfo shipmentInfo) {
Expand Down

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion shipment-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ dependencies {
compileOnly 'org.projectlombok:lombok:1.16.18'


// compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-web')
compileOnly('org.projectlombok:lombok:1.16.18')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public List<Event> process(PrepareShipmentCommand command) {
}

public List<Event> process(CompensateShipmentCommand command) {
//shipment compensation
log.info("shipment " + command.getFailureInfo().getId() + " compensated");

return EventUtil.events(new ConfirmShipmentCompensationEvent(command.getFailureInfo().getSagaId(), id));
Expand Down

This file was deleted.

0 comments on commit b635708

Please sign in to comment.