Skip to content

nostr: dangling timer in per-relay profile publish loop #98463

Description

@zhangLei99586

Summary

The publishProfileEvent function in extensions/nostr/src/nostr-profile.ts creates a per-relay timeout promise via setTimeout, but never clears the timer when the publish succeeds. Each relay produces an orphaned timer.

Reproduction

Source inspection: line 102-103 creates setTimeout without storing or clearing the handle.

Expected

Timer should be cleared in finally after Promise.race settles.

Scope

extensions/nostr/src/nostr-profile.ts:100-106 — 1 file, ~8 LoC change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low-priority cleanup, docs, polish, ergonomics, or speculative work.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions