lnd/discovery
Erick Cestari c324b518d2
lint: enable copyloopvar and remove redundant loop var copies in non-test files
Since Go 1.22 loop variables are scoped per-iteration, so the
`x := x` / `a, b := a, b` copies inside range/for loops are no longer
needed. This enables the `copyloopvar` linter so these are caught
automatically and removes the existing redundant copies in non-test
files.
2026-06-03 15:32:46 -03:00
..
ban.go graphdb: pass context to IsClosedScid 2026-02-25 16:11:46 +02:00
ban_test.go discovery: pass banThreshold to banman 2025-08-04 15:44:35 +08:00
bootstrapper.go multi: drop tor v2 onion production, keep wire codec faithful 2026-05-22 09:42:37 -03:00
bootstrapper_test.go multi: drop tor v2 onion production, keep wire codec faithful 2026-05-22 09:42:37 -03:00
chan_series.go discovery: replace chain param with ctx in UpdatesInHorizon 2026-03-31 09:14:49 +02:00
gossip_result.go discovery: add gossip result helpers wrapping actor.Future[error] 2026-04-10 19:16:49 -07:00
gossip_result_test.go multi/test: add unit tests for gossip result helpers and context bridge 2026-04-10 19:16:49 -07:00
gossiper.go lint: enable copyloopvar and remove redundant loop var copies in non-test files 2026-06-03 15:32:46 -03:00
gossiper_test.go lint: remove redundant loop var copies in test files 2026-06-03 15:32:45 -03:00
log.go multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
message_store.go multi: rename ChannelUpdate to ChannelUpdate1 2024-09-18 16:13:17 +02:00
message_store_test.go multi: rename chan DB Open method to OpenForTesting 2024-11-28 13:51:15 +02:00
mock_test.go graphdb: pass context to IsClosedScid 2026-02-25 16:11:46 +02:00
reliable_sender.go discovery: revert passing ctx through to Start methods 2025-05-22 14:14:39 +02:00
reliable_sender_test.go multi: context.Background() -> t.Context() 2025-08-30 14:13:44 -03:00
sync_manager.go graph,discovery: version IsZombieChannel 2026-03-16 11:29:40 +02:00
sync_manager_test.go discovery: create common helper methods for rate limiter 2025-09-02 21:13:46 +08:00
syncer.go discovery+funding+peer+server: migrate gossip result to actor.Future[error] 2026-04-10 19:16:49 -07:00
syncer_atomic_test.go discovery: rate limiting sending msgs per peer 2025-09-02 21:23:07 +08:00
syncer_queue_test.go discovery: add tests for for async timestamp range queue 2025-08-01 11:20:22 -05:00
syncer_test.go lint: remove redundant loop var copies in test files 2026-06-03 15:32:45 -03:00
validation_barrier.go multi: rename lnwire.NodeAnnouncement 2025-10-01 13:13:32 +02:00
validation_barrier_test.go multi: rename lnwire.NodeAnnouncement 2025-10-01 13:13:32 +02:00