-
Notifications
You must be signed in to change notification settings - Fork 4
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
To add bandwidth metrics #35
base: master
Are you sure you want to change the base?
Conversation
…metrics to hivemind
pb/Makefile
Outdated
@@ -4,3 +4,11 @@ all: $(pbgos) | |||
|
|||
%.pb.go: %.proto | |||
protoc --gogofast_out=. --proto_path=$(GOPATH)/src:. $< | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please resolve the merge conflict and make sure it works
optional double selfRateIn = 1; | ||
optional double selfRateOut = 2; | ||
repeated PeerInfo peers = 3; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing end-of-file /n
@dvmazur please take a look - you're way better at go than I am) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My minor comments were resolved. Pending review from @dvmazur
Hey, will take a look at this PR by tomorrow evening. |
d.bandwidth_metrics = metrics.NewBandwidthCounter() | ||
opts = append(opts, libp2p.BandwidthReporter(d.bandwidth_metrics)) | ||
} else { | ||
d.bandwidth_metrics = nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: d.bandwidth_metrics
are nil
be default anyway.
ignore this comment if you wish
Other than the optional change I've suggested above, I have nothing to add to @justheuristic's comments. |
bfd46ab
to
ed0708a
Compare
To add basic bandwidth metrics + update protobuffs for communicating with hivemind