Merge pull request #4 from 30x/fix_retryFailedUploads_batch_size

bug fix: increment cnt in retryuploadFailed dir
diff --git a/common_helper.go b/common_helper.go
index 9acc033..4b07b66 100644
--- a/common_helper.go
+++ b/common_helper.go
@@ -158,7 +158,7 @@
 				" and apiKey = %s", tenantId, apiKey)
 			// Incase of unknown apiKey~tenantId,
 			// try to refresh the cache ansynchronously incase an update was missed or delayed
-			go createTenantCache()
+			go createDeveloperInfoCache()
 			return developerInfo{}
 		} else {
 			return devInfo
diff --git a/upload_manager.go b/upload_manager.go
index a95ce87..4deba03 100644
--- a/upload_manager.go
+++ b/upload_manager.go
@@ -104,6 +104,7 @@
 				log.Errorf("Cannot move directory '%s'"+
 					" from failed to staging folder", dir.Name())
 			}
+			cnt++
 		} else {
 			break
 		}