Skip to content

Commit ed45d33

Browse files
committed
clear a few TODOs
1 parent b45817c commit ed45d33

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

bookstore-server/service/checkout.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ func (s CheckoutService) stageStock(items []dto.CartItem, done chan bool) {
6767
}
6868
}
6969

70-
// TODO: fire off shipment message
7170
func (s CheckoutService) requestCartShipment(cart *dto.Cart, id primitive.ObjectID) {
7271

7372
cartShipment := dto.CartShipment{

payment/service/payment.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ func (s PaymentService) processPayment(paymentRequest *dto.CartPayment) {
5858
}
5959
}
6060

61-
// TODO: move this to common?
6261
func (s PaymentService) sendMessageToProducer(topic *string, msg []byte) {
6362

6463
err := s.producer.Produce(&kafka.Message{

warehouse-server/service/shipment.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ func (s ShipmentService) persist(shipmentRequest dto.CartWarehouse) {
108108
if err == mongo.ErrNoDocuments {
109109
insertRes, insertErr := s.collection.InsertOne(ctx, shipmentRequest)
110110
if insertErr != nil {
111-
// TODO: ignore failed insert on duplicate?
112111
log.Println(err)
113112
}
114113
log.Println("Inserted shipment ", insertRes.InsertedID)

0 commit comments

Comments
 (0)