Skip to content
This repository was archived by the owner on Sep 22, 2020. It is now read-only.

Conversation

@nak3
Copy link
Contributor

@nak3 nak3 commented Dec 10, 2016

prometheus: move promDistBlockPeerFailures to readFromPeer()

ReadLevel doesn't increment the promDistBlockPeerFailures when we set
ReadSpread in current code. Since GetBlock() for remote peers are
called in readFromPeer, this patch moves promDistBlockPeerFailures
incrementation to readFromPeer()

@xiang90
Copy link
Contributor

xiang90 commented Dec 12, 2016

Can you explain briefly why you want to make this change? Also we actually might increase the counter in getblock func. Moving the accounting to the caller might double count if you do not change getblock.

@nak3 nak3 changed the title prometheus: move promDistBlockPeerFailures to to readFromPeer prometheus: move promDistBlockPeerFailures to readFromPeer() Dec 12, 2016
@nak3
Copy link
Contributor Author

nak3 commented Dec 12, 2016

Sure, I explained it in the first comment.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants