ax(node): rename d to deduplicator in NewMessageDeduplicator (AX-1)
Some checks failed
Security Scan / security (push) Successful in 32s
Test / test (push) Has been cancelled

Single-letter variable `d` requires a reader to infer its type from
context. Rename to `deduplicator` — predictable names over short names
(RFC-CORE-008 §1).

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 10:38:29 +01:00
parent b59fcc18a8
commit 22a74415f3
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -64,11 +64,11 @@ type MessageDeduplicator struct {
// dedup.Mark(msg.ID)
// if dedup.IsDuplicate(msg.ID) { continue }
func NewMessageDeduplicator(ttl time.Duration) *MessageDeduplicator {
d := &MessageDeduplicator{
deduplicator := &MessageDeduplicator{
seen: make(map[string]time.Time),
ttl: ttl,
}
return d
return deduplicator
}
// if dedup.IsDuplicate(msg.ID) { continue } // drop already-processed message