Skip to content

Commit 867bcda

Browse files
committed
comments
1 parent c4f3cac commit 867bcda

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/notifications/NotificationPollingService.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,14 @@ class NotificationPollingServiceImpl :
8686
private fun pollForNotifications(): Boolean {
8787
var retryCount = 0
8888
var lastException: Exception? = null
89-
// check ETag of current cached file
9089

9190
while (retryCount < MAX_RETRIES) {
9291
try {
93-
// Check if there are updates available
9492
val newETag = getNotificationETag()
9593
if (newETag == currentETag) {
9694
LOG.debug { "No updates available for notifications" }
9795
return false
9896
}
99-
// Force a new download by resolving the resource
10097
resourceResolver.get()
10198
.resolve(notificationsResource)
10299
.toCompletableFuture()
@@ -129,7 +126,6 @@ class NotificationPollingServiceImpl :
129126
*/
130127
private fun emitFailureMetric(exception: Exception?) {
131128
// todo: add metric
132-
// toolkit
133129
}
134130

135131
companion object {

0 commit comments

Comments
 (0)