mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
docs(msgrate): Fix inaccuracies in documentation
This commit is contained in:
parent
10421edf3e
commit
ca73cea3bb
2 changed files with 5 additions and 5 deletions
|
|
@ -67,7 +67,7 @@ const rttMinConfidence = 0.1
|
||||||
|
|
||||||
// ttlScaling is the multiplier that converts the estimated roundtrip time to a
|
// ttlScaling is the multiplier that converts the estimated roundtrip time to a
|
||||||
// timeout cap for network requests. The expectation is that peers' response time
|
// timeout cap for network requests. The expectation is that peers' response time
|
||||||
// will fluctuate around the estimated roundtrip, but depending in their load at
|
// will fluctuate around the estimated roundtrip, but depending on their load at
|
||||||
// request time, it might be higher than anticipated. This scaling factor ensures
|
// request time, it might be higher than anticipated. This scaling factor ensures
|
||||||
// that we allow remote connections some slack but at the same time do enforce a
|
// that we allow remote connections some slack but at the same time do enforce a
|
||||||
// behavior similar to our median peers.
|
// behavior similar to our median peers.
|
||||||
|
|
@ -81,8 +81,8 @@ const ttlLimit = time.Minute
|
||||||
|
|
||||||
// tuningConfidenceCap is the number of active peers above which to stop detuning
|
// tuningConfidenceCap is the number of active peers above which to stop detuning
|
||||||
// the confidence number. The idea here is that once we hone in on the capacity
|
// the confidence number. The idea here is that once we hone in on the capacity
|
||||||
// of a meaningful number of peers, adding one more should ot have a significant
|
// of a meaningful number of peers, adding one more should not have a significant
|
||||||
// impact on things, so just ron with the originals.
|
// impact on things, so just run with the originals.
|
||||||
const tuningConfidenceCap = 10
|
const tuningConfidenceCap = 10
|
||||||
|
|
||||||
// tuningImpact is the influence that a new tuning target has on the previously
|
// tuningImpact is the influence that a new tuning target has on the previously
|
||||||
|
|
@ -344,7 +344,7 @@ func (t *Trackers) meanCapacities() map[uint64]float64 {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TargetRoundTrip returns the current target round trip time for a request to
|
// TargetRoundTrip returns the current target round trip time for a request to
|
||||||
// complete in.The returned RTT is slightly under the estimated RTT. The reason
|
// complete in. The returned RTT is slightly under the estimated RTT. The reason
|
||||||
// is that message rate estimation is a 2 dimensional problem which is solvable
|
// is that message rate estimation is a 2 dimensional problem which is solvable
|
||||||
// for any RTT. The goal is to gravitate towards smaller RTTs instead of large
|
// for any RTT. The goal is to gravitate towards smaller RTTs instead of large
|
||||||
// messages, to result in a stabler download stream.
|
// messages, to result in a stabler download stream.
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ type jsonrpcSubscriptionNotification struct {
|
||||||
Params subscriptionResultEnc `json:"params"`
|
Params subscriptionResultEnc `json:"params"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// A value of this type can a JSON-RPC request, notification, successful response or
|
// A value of this type can be a JSON-RPC request, notification, successful response or
|
||||||
// error response. Which one it is depends on the fields.
|
// error response. Which one it is depends on the fields.
|
||||||
type jsonrpcMessage struct {
|
type jsonrpcMessage struct {
|
||||||
Version string `json:"jsonrpc,omitempty"`
|
Version string `json:"jsonrpc,omitempty"`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue