Skip to content

unhide deprecation warnings#3725

Merged
jangko merged 1 commit intomasterfrom
NsH
Sep 29, 2025
Merged

unhide deprecation warnings#3725
jangko merged 1 commit intomasterfrom
NsH

Conversation

@tersec
Copy link
Copy Markdown
Contributor

@tersec tersec commented Sep 28, 2025

This PR leaves two deprecation warnings in place:

nimbus-eth1/execution_chain/networking/discoveryv5.nim(21, 1) Warning: Please use closeWait() instead; close is deprecated [Deprecated]
nimbus-eth1/execution_chain/networking/eth1_enr.nim(17, 1) Warning: Use the Result[Record] version instead; fromURI is deprecated [Deprecated]

The first proposes to asyncSpawn closeWait(), which, in general sometimes asyncSpawn might prove necessary or useful, but in general it can also lose track of Futures and become the root cause of hard-to-trace crashes, so it seems useful to keep this as a compilation warning, pending more specific action.

The second is effectively a false positive due to

export
enr.Record, enr.fromURI, enode

which matches all of the fromURI definitions, including the deprecated ones, even though nimbus-eth1 doesn't actually use the deprecated ones. I'm not sure I'd defend calling that a Nim bug; it seems to be a correct warning.

To resolve that:

@jangko jangko merged commit 80ddb54 into master Sep 29, 2025
13 checks passed
@jangko jangko deleted the NsH branch September 29, 2025 01:54
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