Skip to content

Commit b123bab

Browse files
committed
Remove check for strategy type until we handle the STRATEGY_TYPE placement appropriately
1 parent 903877b commit b123bab

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/state/src/State.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,8 @@ STATUS stepStateMachine(PStateMachine pStateMachine)
171171
} else {
172172
// Increment the state retry count
173173
pStateMachineImpl->context.retryCount++;
174-
// pStateMachineImpl->context.time = time + NEXT_SERVICE_CALL_RETRY_DELAY(pStateMachineImpl->context.retryCount);
175-
// Call the state machine error handler
176-
// This call could be a no-op if the state transition is happening for SERVICE_CALL_RESULT_OK code
177-
if (pStateMachineImpl->context.pCurrentState->stateTransitionHookFunc != NULL) {
178-
CHK_STATUS(pStateMachineImpl->context.pCurrentState->stateTransitionHookFunc(pStateMachineImpl->customData, &errorStateTransitionWaitTime));
179-
pStateMachineImpl->context.time = time + errorStateTransitionWaitTime;
180-
}
174+
pStateMachineImpl->context.time = time + NEXT_SERVICE_CALL_RETRY_DELAY(pStateMachineImpl->context.retryCount);
175+
181176
// Check if we have tried enough times
182177
if (pState->retry != INFINITE_RETRY_COUNT_SENTINEL) {
183178
CHK(pStateMachineImpl->context.retryCount <= pState->retry, pState->status);

src/utils/src/ExponentialBackoffRetryStrategy.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ STATUS getExponentialBackoffRetryCount(PRetryStrategy pRetryStrategy, PUINT32 pR
239239
CHK(pRetryStrategy != NULL && pRetryCount != NULL, STATUS_NULL_ARG);
240240
pRetryState = TO_EXPONENTIAL_BACKOFF_STATE(pRetryStrategy);
241241
MUTEX_LOCK(pRetryState->retryStrategyLock);
242-
DLOGD("Retry count: %d", pRetryState->currentRetryCount);
243242
*pRetryCount = pRetryState->currentRetryCount;
244243
MUTEX_UNLOCK(pRetryState->retryStrategyLock);
245244

0 commit comments

Comments
 (0)