@@ -61,7 +61,7 @@ func (bs *BookingSaga) HandleBookFlightsRsp(invocation gbus.Invocation, message
6161 if bs .CancelingFlights == false {
6262 bs .FinishedWithFlights = true
6363 }
64- return bs .notifyInitiatorIfSagaComplets (true , invocation .Ctx (), invocation )
64+ return bs .notifyInitiatorIfSagaCompletes (true , invocation .Ctx (), invocation )
6565}
6666
6767func (bs * BookingSaga ) HandleBookHotelRsp (invocation gbus.Invocation , message * gbus.BusMessage ) error {
@@ -82,7 +82,7 @@ func (bs *BookingSaga) HandleBookHotelRsp(invocation gbus.Invocation, message *g
8282 return invocation .Bus ().Send (invocation .Ctx (), "flights-service" , cancelFlightsCmd )
8383 }
8484
85- return bs .notifyInitiatorIfSagaComplets (true , invocation .Ctx (), invocation )
85+ return bs .notifyInitiatorIfSagaCompletes (true , invocation .Ctx (), invocation )
8686
8787}
8888
@@ -91,10 +91,10 @@ func (bs *BookingSaga) HandleCancelFlightsRsp(invocation gbus.Invocation, messag
9191 invocation .Log ().Infof ("flights were canceled ? %t" , response .Success )
9292 bs .FinishedWithFlights = true
9393
94- return bs .notifyInitiatorIfSagaComplets (false , invocation .Ctx (), invocation )
94+ return bs .notifyInitiatorIfSagaCompletes (false , invocation .Ctx (), invocation )
9595}
9696
97- func (bs * BookingSaga ) notifyInitiatorIfSagaComplets (success bool , ctx context.Context , invocation gbus.Invocation ) error {
97+ func (bs * BookingSaga ) notifyInitiatorIfSagaCompletes (success bool , ctx context.Context , invocation gbus.Invocation ) error {
9898
9999 if bs .IsComplete () {
100100
0 commit comments