Skip to content

Commit 65b754c

Browse files
committed
Revert "Cache remainingRequests when updating sockets (#67)"
This reverts commit 1409b29.
1 parent 47f0f0c commit 65b754c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/app/GhService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import org.eclipse.egit.github.core.service.RepositoryService
77
import org.eclipse.egit.github.core.service.UserService
88
import org.eclipse.egit.github.core.service.WatcherService
99
import org.slf4j.LoggerFactory
10+
import java.io.IOException
1011
import java.util.concurrent.ConcurrentHashMap
1112
import java.util.concurrent.Executors
1213
import java.util.concurrent.TimeUnit
@@ -53,10 +54,9 @@ object GhService {
5354

5455
// update all connected clients with remainingRequests twice per second
5556
scheduleAtFixedRate({
56-
val remainingRequests = remainingRequests.toString()
5757
clientSessions.forEachKey(1) {
5858
try {
59-
it.send(remainingRequests)
59+
it.send(remainingRequests.toString())
6060
} catch (e: Exception) {
6161
log.error(e.toString())
6262
}

0 commit comments

Comments
 (0)