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

Avoid using debugInfo #32

Open
michielbdejong opened this issue Oct 15, 2024 · 1 comment
Open

Avoid using debugInfo #32

michielbdejong opened this issue Oct 15, 2024 · 1 comment

Comments

@michielbdejong
Copy link
Member

No description provided.

@michielbdejong
Copy link
Member Author

  • receiveNack uses if (debugInfo.path.length === 0) to know if a backtrack is finished. It should instead look for incoming traffic reports for the probe.
  • receiveNack uses debugInfo.path.pop() to know who the probe came from. It should instead look for incoming traffic reports for the probe.
  • considerProbe does the same with const oldSender = debugInfo.path.pop();
  • considerProbe uses if (debugInfo.backtracked.length > 0) to decide whether the incarnation should be incremented. it should instead keep track of the incoming Nack to detect this.
  • receiveScout uses if (this.name === debugInfo.loop[0]) to know if it should initiate a probe. It should instead remember that it started the scout message.

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