LSPS2: Isolate `PeerState` types via a `sealed` sub-module
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 22/100
- Tipo de issue
- Refatoração
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- rust
- Domínio
- backend, blockchain
Direção de pesquisa
This is an architectural refactor of the LSPS2 service handler: move PeerState and related types into a sealed sub-module so they are only reachable through dedicated internal pub methods, shrinking the places that set needs_persist. Start from the existing LSPS2 handler and any work already sketched in #4008. Done means state changes that must be persisted go only through that API and the rest of the handler no longer mutates PeerState directly.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
The LSPS2 service handler has a lot going on. In particular, it might currently is hard to follow when we actually make a state change that needs to be persisted.
We should isolate the PeerState and related types to a sealed sub-module to ensure we can only access/modify it via dedicated internal pub API methods. This would reduce the number of places where we need to set needs_persist, making it much less error prone.
FWIW, I started down this road as part of #4008, but this would be huge refactor on its own right so decided not to continue for the time being.
- Linguagem predominante
- Rust
- Estrelas
- 1.4k
- Forks
- 482
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de lightningdevkit/rust-lightning
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
lightningdevkit/rust-lightning#4767 ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 65/100
lightningdevkit/rust-lightning#1849 ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 22/100
lightningdevkit/rust-lightning#4764 · 3 comentários ·
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 22/100
lightningdevkit/rust-lightning#4757 · 1 comentário ·
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 28/100
lightningdevkit/rust-lightning#4739 ·
Todas as issues de lightningdevkit/rust-lightning
Issues semelhantes
-
bug help wanted ui
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
userFRM/egui-charts#4292 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
Tripstack-Corp/spyc#1352 ·
Mantenedores costumam responder em até 1 dia
-
marketing
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
area:tui enhancement P2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
agent-of-empires/agent-of-empires#6077 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia