mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +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
|
||||
// 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
|
||||
// that we allow remote connections some slack but at the same time do enforce a
|
||||
// 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
|
||||
// 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
|
||||
// impact on things, so just ron with the originals.
|
||||
// of a meaningful number of peers, adding one more should not have a significant
|
||||
// impact on things, so just run with the originals.
|
||||
const tuningConfidenceCap = 10
|
||||
|
||||
// tuningImpact is the influence that a new tuning target has on the previously
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ type jsonrpcSubscriptionNotification struct {
|
|||
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.
|
||||
type jsonrpcMessage struct {
|
||||
Version string `json:"jsonrpc,omitempty"`
|
||||
|
|
|
|||
Loading…
Reference in a new issue