Skip to content

perf: remove dead relayTimes field - #1931

Merged
efiten merged 1 commit into
Kpa-clawbot:masterfrom
Joel-Claw:perf/remove-dead-relaytimes
Sep 2, 2026
Merged

perf: remove dead relayTimes field#1931
efiten merged 1 commit into
Kpa-clawbot:masterfrom
Joel-Claw:perf/remove-dead-relaytimes

Conversation

@Joel-Claw

Copy link
Copy Markdown
Contributor

The relayTimes field (map[string][]int64) on PacketStore is never written to and never read. Its only references are the declaration at store.go:180 and the make() in NewPacketStore at store.go:644.

relay_liveness_test.go looks like a user at a glance but builds its own local idx := make(map[string][]int64) and passes that to addTxToRelayTimeIndex; the string "relayTimes" there is only inside a t.Error message.

This is the surviving fragment of #1872, which no longer compiles after #1855 removed lastSeenTouched and touchRelayLastSeen from master. Verified against current master: both references are gone, build passes, all tests pass (32.2s).

The relayTimes field (map[string][]int64) on PacketStore is never
written to and never read. Its only references are the declaration
and the make() in NewPacketStore. relay_liveness_test.go builds its
own local idx map and passes that to addTxToRelayTimeIndex; the
string 'relayTimes' there is only inside a t.Error message.

Rebased to master after Kpa-clawbot#1855 merged and removed lastSeenTouched,
which made the original PR Kpa-clawbot#1872 no longer compile. This is the
only remaining valid change from that PR.
@efiten
efiten enabled auto-merge (squash) September 2, 2026 12:51
@efiten
efiten merged commit 4a77645 into Kpa-clawbot:master Sep 2, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants