Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setupNat helper backed by nim-task-runner #273

Open
michaelsbradleyjr opened this issue Aug 16, 2021 · 0 comments
Open

setupNat helper backed by nim-task-runner #273

michaelsbradleyjr opened this issue Aug 16, 2021 · 0 comments

Comments

@michaelsbradleyjr
Copy link
Contributor

Research creating our own setupNat helper that makes use of nim-task-runner, which will give us proper control over starting and stopping the thread running the nat loop.

While making use of nim-task-runner, it should ideally hide that usage (in a memory-safe manner, of course). It could be made available via import status/util/nat and would not be imported/re-exported by nim-status' top-level API so that it's import and usage is completely optional, e.g. a user of nim-status could use nim-eth's setupNat instead of our own, if that's what they prefer.

If it seems feasible, implement the helper.

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

No branches or pull requests

1 participant