Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Possible miscount of sent messages #440

Closed
wolneykien opened this issue Sep 7, 2020 · 6 comments
Closed

Possible miscount of sent messages #440

wolneykien opened this issue Sep 7, 2020 · 6 comments

Comments

@wolneykien
Copy link
Contributor

I can see only one place where the MessagesSent counter is incremented:

atomic.AddUint64(&bsnet.stats.MessagesSent, 1)

What about messages going out from a MessageSender?

@welcome
Copy link

welcome bot commented Sep 7, 2020

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment.
Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

  • "Priority" labels will show how urgent this is for the team.
  • "Status" labels will show if this is ready to be worked on, blocked, or in progress.
  • "Need" labels will indicate if additional input or analysis is required.

Finally, remember to use https://discuss.ipfs.io if you just need general support.

@dirkmc
Copy link
Contributor

dirkmc commented Sep 7, 2020

You're right we should increment the counter in streamMessageSender.SendMsg()

Would you have time to submit a PR?

@wolneykien
Copy link
Contributor Author

OK, I'll cook it up.

@jacobheun
Copy link

Looks like #441 was merged, can this be closed?

@wolneykien
Copy link
Contributor Author

I think, yes.

@wolneykien
Copy link
Contributor Author

And thanks for the reminder!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants