docs(msgrate): Fix inaccuracies in documentation

This commit is contained in:
rizkyikiw42 2025-08-22 17:27:35 +08:00
parent 10421edf3e
commit ca73cea3bb
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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"`