Skip to content

fix: relay negentropy sync panic on wasm - #1405

Merged
yukibtc merged 1 commit into
nostrdevkit:masterfrom
reyakov:fix-wasm-sync
Jul 30, 2026
Merged

fix: relay negentropy sync panic on wasm#1405
yukibtc merged 1 commit into
nostrdevkit:masterfrom
reyakov:fix-wasm-sync

Conversation

@reyakov

@reyakov reyakov commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Description

Currently, the negentropy sync is using Instant from std::time which will cause panic on wasm enviroment. Solution: migrate to universal_time

Notes to the reviewers

Checklist

@codecov

codecov Bot commented Jul 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

…ync API

This fixes panic on WASM environment.

Pull-Request: nostrdevkit#1405
Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
@yukibtc
yukibtc merged commit 0c3df38 into nostrdevkit:master Jul 30, 2026
@TheAwiteb

Copy link
Copy Markdown
Member

Why the tests did not cover this panic?

@yukibtc

yukibtc commented Jul 30, 2026

Copy link
Copy Markdown
Member

Why the tests did not cover this panic?

Tests aren't executed for WASM. Cargo test doesn't work for WASM, but we need to figure out a solution

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.

3 participants