Skip to content

Commit ba61084

Browse files
dnephinncabatoff
andauthored
Apply suggestions from code review
Co-authored-by: Nick Cabatoff <[email protected]>
1 parent 6927049 commit ba61084

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ const (
2222
// within the library. As the library is enhanced this value may change
2323
// over time to reflect current suggested maximums.
2424
//
25-
// Applying logs entries with data greater than this size risks RPC IO taking
26-
// too long and preventing timely heartbeat signals which are sent in serial
25+
// Applying log entries with data greater than this size risks RPC IO taking
26+
// too long and preventing timely heartbeat signals. These signals are sent in serial
2727
// in current transports, potentially causing leadership instability.
2828
SuggestedMaxDataSize = 512 * 1024
2929
)

raft.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (r *Raft) requestConfigChange(req configurationChangeRequest, timeout time.
123123
}
124124
}
125125

126-
// run the main thread that handles leadership, and RPC requests.
126+
// run the main thread that handles leadership and RPC requests.
127127
func (r *Raft) run() {
128128
for {
129129
// Check if we are doing a shutdown

0 commit comments

Comments
 (0)