style(ios): устранить замечания gosec/revive
- безопасная конверсия uint64→int64 (clampToInt64) для счётчиков, экспортируемых через gomobile, чтобы не ловить G115; - анонимный ресивер у bufLogger.write (unused-receiver).
This commit is contained in:
1 parent
c683670abc
commit
0baefd19fc
3 files changed
+16
-5
No files matched your search
+2
-2
@@ -37,8 +37,8 @@ func startRateMeter(ctx context.Context) {
|
||||
prevTx, prevRx = tx, rx
|
||||
continue
|
||||
}
|
||||
globalTxRate.Store(int64(tx - prevTx))
|
||||
globalRxRate.Store(int64(rx - prevRx))
|
||||
globalTxRate.Store(clampToInt64(tx - prevTx))
|
||||
globalRxRate.Store(clampToInt64(rx - prevRx))
|
||||
prevTx, prevRx = tx, rx
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user