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

Only update neighbors when module is enabled #2775

Merged
merged 2 commits into from
Sep 5, 2023

Conversation

GUVWAF
Copy link
Member

@GUVWAF GUVWAF commented Sep 5, 2023

If the NeighborInfoModule is not enabled, we shouldn't do any bookkeeping upon receiving a packet as we don't do anything with it and we also don't clean-up any neighbors, thus only consuming processing power/writes to flash (and it even caused a bug before #2767). It will still update the last_sent_by_id when passing through it in the FloodingRouter.

@jp-bennett
Copy link
Collaborator

Can remove line 102, as it's no longer necessary with this change.

@GUVWAF
Copy link
Member Author

GUVWAF commented Sep 5, 2023

That's right, done.

@code8buster code8buster merged commit 899f9dd into meshtastic:master Sep 5, 2023
@GUVWAF GUVWAF deleted the disabledNeighbor branch February 18, 2024 13:23
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