Little refactor

This commit is contained in:
ivan2282
2025-12-10 17:34:10 +03:00
parent ecdb34505c
commit bdea92a61b
35 changed files with 74 additions and 30 deletions

View File

@@ -159,7 +159,8 @@ class ConnectionLogger {
data: data,
);
}
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
void logState(String from, String to, {Map<String, dynamic>? metadata}) {
final data = <String, dynamic>{

View File

@@ -83,7 +83,8 @@ class ConnectionManager {
bool get canSendMessages => currentState.canSendMessages;
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
Future<void> initialize() async {
if (_isDisposed) {
_logger.logError('Попытка инициализации после dispose');

View File

@@ -85,7 +85,8 @@ class ConnectionManagerSimple {
bool get canSendMessages => currentState.canSendMessages;
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
Future<void> initialize() async {
if (_isDisposed) {

View File

@@ -25,7 +25,8 @@ enum ConnectionState {
disabled,
}
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
class ConnectionInfo {
final ConnectionState state;

View File

@@ -62,7 +62,8 @@ class HealthMetrics {
return max(0, score);
}
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
ConnectionQuality get quality {
final score = healthScore;
if (score >= 90) return ConnectionQuality.excellent;

View File

@@ -119,7 +119,8 @@ class RetryStrategy {
),
};
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
Duration calculateDelay(int attempt, ErrorType errorType) {
final config = errorConfigs[errorType] ?? errorConfigs[ErrorType.unknown]!;