1 parent 7b3257f commit cb5cd81Copy full SHA for cb5cd81
1 file changed
common/src/commonMain/kotlin/com/qrshield/security/RateLimiter.kt
@@ -270,7 +270,8 @@ class Throttler(
270
private val clock: () -> Long = { Clock.System.now().toEpochMilliseconds() }
271
) {
272
273
- @Volatile
+ // Note: For thread-safe access, use the suspend variants with Mutex
274
+ // The non-suspend methods are for single-threaded UI access
275
private var lastOperationTime: Long = 0L
276
277
private val mutex = Mutex()
0 commit comments