Brian O'Connor

Minor intent cleanup

Change-Id: I72dae58879f5b45566d5f120f6fd85807460bb78
......@@ -181,7 +181,8 @@ public class IntentCleanup implements Runnable, IntentListener {
service.withdraw(intentData.intent());
break;
default:
//TODO this is an error, might want to log it
log.warn("Trying to resubmit corrupt intent {} in state {} with request {}",
intentData.key(), intentData.state(), intentData.request());
break;
}
}
......@@ -195,7 +196,8 @@ public class IntentCleanup implements Runnable, IntentListener {
service.withdraw(intentData.intent());
break;
default:
//TODO this is an error (or could be purge), might want to log it
log.warn("Trying to resubmit pending intent {} in state {} with request {}",
intentData.key(), intentData.state(), intentData.request());
break;
}
}
......@@ -225,7 +227,6 @@ public class IntentCleanup implements Runnable, IntentListener {
}
for (IntentData intentData : store.getPendingData(true, periodMs)) {
//TODO should we do age check here, or in the store?
resubmitPendingRequest(intentData);
stuckCount++;
}
......