@@ -61,7 +61,7 @@ func (bs *BookingSaga) HandleBookFlightsRsp(invocation gbus.Invocation, message
61
61
if bs .CancelingFlights == false {
62
62
bs .FinishedWithFlights = true
63
63
}
64
- return bs .notifyInitiatorIfSagaComplets (true , invocation .Ctx (), invocation )
64
+ return bs .notifyInitiatorIfSagaCompletes (true , invocation .Ctx (), invocation )
65
65
}
66
66
67
67
func (bs * BookingSaga ) HandleBookHotelRsp (invocation gbus.Invocation , message * gbus.BusMessage ) error {
@@ -82,7 +82,7 @@ func (bs *BookingSaga) HandleBookHotelRsp(invocation gbus.Invocation, message *g
82
82
return invocation .Bus ().Send (invocation .Ctx (), "flights-service" , cancelFlightsCmd )
83
83
}
84
84
85
- return bs .notifyInitiatorIfSagaComplets (true , invocation .Ctx (), invocation )
85
+ return bs .notifyInitiatorIfSagaCompletes (true , invocation .Ctx (), invocation )
86
86
87
87
}
88
88
@@ -91,10 +91,10 @@ func (bs *BookingSaga) HandleCancelFlightsRsp(invocation gbus.Invocation, messag
91
91
invocation .Log ().Infof ("flights were canceled ? %t" , response .Success )
92
92
bs .FinishedWithFlights = true
93
93
94
- return bs .notifyInitiatorIfSagaComplets (false , invocation .Ctx (), invocation )
94
+ return bs .notifyInitiatorIfSagaCompletes (false , invocation .Ctx (), invocation )
95
95
}
96
96
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 {
98
98
99
99
if bs .IsComplete () {
100
100
0 commit comments