1
0
Fork 0

Spelling mistakes

master
Philip O'Toole 9 months ago
parent 8e306d6789
commit bdda037e48

@ -190,7 +190,7 @@ func Test_TLSServiceSecureMutual(t *testing.T) {
url := fmt.Sprintf("https://%s", s.Addr().String()) url := fmt.Sprintf("https://%s", s.Addr().String())
// Create a TLS Config which wil require verfication of the server cert, and trusts the CA cert. // Create a TLS Config which wil require verification of the server cert, and trusts the CA cert.
tlsConfig := &tls.Config{InsecureSkipVerify: false} tlsConfig := &tls.Config{InsecureSkipVerify: false}
tlsConfig.RootCAs = x509.NewCertPool() tlsConfig.RootCAs = x509.NewCertPool()
ok := tlsConfig.RootCAs.AppendCertsFromPEM(caCertPEM) ok := tlsConfig.RootCAs.AppendCertsFromPEM(caCertPEM)

@ -53,7 +53,7 @@ func (l *Log) Indexes() (uint64, uint64, error) {
// log entry written to the Raft log. Returns an index of // log entry written to the Raft log. Returns an index of
// zero if no such log exists. // zero if no such log exists.
func (l *Log) LastCommandIndex(fi, li uint64) (uint64, error) { func (l *Log) LastCommandIndex(fi, li uint64) (uint64, error) {
// Check for empty log. According to the interface defintion, if // Check for empty log. According to the interface definition, if
// the first index is zero, or the last, the log is empty. // the first index is zero, or the last, the log is empty.
if fi == 0 || li == 0 { if fi == 0 || li == 0 {
return 0, nil return 0, nil

@ -122,7 +122,7 @@ func New(maxSize, batchSize int, t time.Duration) *Queue {
// Write queues a request, and returns a monotonically incrementing // Write queues a request, and returns a monotonically incrementing
// sequence number associated with the slice of statements. If one // sequence number associated with the slice of statements. If one
// slice has a larger sequence number than a number, the former slice // slice has a larger sequence number than a number, the former slice
// will always be commited to Raft before the latter slice. // will always be committed to Raft before the latter slice.
// //
// c is an optional channel. If non-nil, it will be closed when the Request // c is an optional channel. If non-nil, it will be closed when the Request
// containing these statements is closed. // containing these statements is closed.

Loading…
Cancel
Save