@@ -87,7 +87,7 @@ func ApplyActions(s *protos.OrchestrationRuntimeState, customStatus *wrapperspb.
87
87
if completedAction .OrchestrationStatus == protos .OrchestrationStatus_ORCHESTRATION_STATUS_CONTINUED_AS_NEW {
88
88
newState := NewOrchestrationRuntimeState (s .InstanceId , customStatus , []* protos.HistoryEvent {})
89
89
newState .ContinuedAsNew = true
90
- AddEvent (newState , & protos.HistoryEvent {
90
+ _ = AddEvent (newState , & protos.HistoryEvent {
91
91
EventId : - 1 ,
92
92
Timestamp : timestamppb .Now (),
93
93
EventType : & protos.HistoryEvent_OrchestratorStarted {
@@ -97,7 +97,7 @@ func ApplyActions(s *protos.OrchestrationRuntimeState, customStatus *wrapperspb.
97
97
})
98
98
99
99
// Duplicate the start event info, updating just the input
100
- AddEvent (newState ,
100
+ _ = AddEvent (newState ,
101
101
& protos.HistoryEvent {
102
102
EventId : - 1 ,
103
103
Timestamp : timestamppb .New (time .Now ()),
@@ -119,7 +119,7 @@ func ApplyActions(s *protos.OrchestrationRuntimeState, customStatus *wrapperspb.
119
119
120
120
// Unprocessed "carryover" events
121
121
for _ , e := range completedAction .CarryoverEvents {
122
- AddEvent (newState , e )
122
+ _ = AddEvent (newState , e )
123
123
}
124
124
125
125
// Overwrite the current state object with a new one
@@ -180,7 +180,7 @@ func ApplyActions(s *protos.OrchestrationRuntimeState, customStatus *wrapperspb.
180
180
}
181
181
}
182
182
} else if createtimer := action .GetCreateTimer (); createtimer != nil {
183
- AddEvent (s , & protos.HistoryEvent {
183
+ _ = AddEvent (s , & protos.HistoryEvent {
184
184
EventId : action .Id ,
185
185
Timestamp : timestamppb .New (time .Now ()),
186
186
EventType : & protos.HistoryEvent_TimerCreated {
@@ -217,15 +217,15 @@ func ApplyActions(s *protos.OrchestrationRuntimeState, customStatus *wrapperspb.
217
217
},
218
218
Router : action .Router ,
219
219
}
220
- AddEvent (s , scheduledEvent )
220
+ _ = AddEvent (s , scheduledEvent )
221
221
s .PendingTasks = append (s .PendingTasks , scheduledEvent )
222
222
} else if createSO := action .GetCreateSubOrchestration (); createSO != nil {
223
223
// Autogenerate an instance ID for the sub-orchestration if none is provided, using a
224
224
// deterministic algorithm based on the parent instance ID to help enable de-duplication.
225
225
if createSO .InstanceId == "" {
226
226
createSO .InstanceId = fmt .Sprintf ("%s:%04x" , s .InstanceId , action .Id )
227
227
}
228
- AddEvent (s , & protos.HistoryEvent {
228
+ _ = AddEvent (s , & protos.HistoryEvent {
229
229
EventId : action .Id ,
230
230
Timestamp : timestamppb .New (time .Now ()),
231
231
EventType : & protos.HistoryEvent_SubOrchestrationInstanceCreated {
@@ -276,7 +276,7 @@ func ApplyActions(s *protos.OrchestrationRuntimeState, customStatus *wrapperspb.
276
276
},
277
277
Router : action .Router ,
278
278
}
279
- AddEvent (s , e )
279
+ _ = AddEvent (s , e )
280
280
s .PendingMessages = append (s .PendingMessages , & protos.OrchestrationRuntimeStateMessage {HistoryEvent : e , TargetInstanceID : sendEvent .Instance .InstanceId })
281
281
} else if terminate := action .GetTerminateOrchestration (); terminate != nil {
282
282
// Send a message to terminate the target orchestration
0 commit comments