refactor(mqtt): replace the too_many_arguments suppressions in embedded/ with a context struct
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- rust
- Área
- embedded-iot
Línea de trabajo
Read the seven clippy::too_many_arguments sites listed in aimdb-mqtt-connector/src/embedded/session_loop.rs, session.rs, tls.rs, and mod.rs, then trace which parameters they share. Group the common parameters into one or two context structs and remove the suppressions that are no longer needed. Run make test-embedded and the bench gate; done means the checks pass without increasing future sizes on the embedded target.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
aimdb-mqtt-connector/src/embedded/ suppresses clippy::too_many_arguments in seven places:
session_loop.rs:81,:152,:310session.rs:50tls.rs:317mod.rs:370,:428
The same group of parameters is evidently threaded through the session entry points, the session loop and the TLS path. That usually means a missing "session context" struct: adding one more piece of state today means touching every signature in the chain.
The crate also has the most features in the workspace (17 in aimdb-mqtt-connector/Cargo.toml), and mod.rs:489 / :516 carry #[allow(unreachable_code)], so this is the connector where configuration complexity is highest.
Suggested work
- Identify the parameters common to those seven functions and group them into one or two structs (e.g. connection config vs. per-session buffers/channels), passed by reference.
- Remove the
too_many_argumentsallows that become unnecessary. - Check that the change does not grow future sizes on the embedded target (
make test-embeddedand the bench gate).
Notes
Found from the lint suppressions alone at d9c7be0; I did not trace each signature, so how many of the seven collapse onto the same struct is to be confirmed when doing the work.
- Lenguaje dominante
- Rust
- Estrellas
- 101
- Forks
- 20
- Merge medio
- 2 h 33 min
- PR fusionados (30 d)
- 90
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de aimdb-dev/aimdb
-
🏷️ good first issue enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
Todos los issues de aimdb-dev/aimdb
Issues similares
-
Panic on live viewport resize when unstyled elements exist in display: none subtreePosiblemente ocupada @GoCoder7 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
DioxusLabs/blitz#1488 ·
Los mantenedores suelen responder en 1 día
-
S-Needs triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
vectordotdev/vrl#2042 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día