trivial: Fix spelling errors

- Fixes some spelling in code comments and a couple of function names
This commit is contained in:
Michael Rooke
2023-09-20 11:37:32 -04:00
parent ec585431a9
commit 78d9996620
30 changed files with 65 additions and 52 deletions

View File

@@ -517,7 +517,7 @@ func (q *DiskOverflowQueue[T]) feedMemQueue() {
// instead persist the task to disk. After the producer,
// drainInputList, has pushed an item to inputChan, it is
// guaranteed to await a response on the task's success channel
// before quiting. Therefore, it is not required to listen on
// before quitting. Therefore, it is not required to listen on
// the quit channel here.
case task := <-q.inputChan:
select {

View File

@@ -158,7 +158,7 @@ func (n *sessionNegotiator) Start() error {
return nil
}
// Stop safely shutsdown the sessionNegotiator.
// Stop safely shuts down the sessionNegotiator.
func (n *sessionNegotiator) Stop() error {
n.stopped.Do(func() {
n.log.Debugf("Stopping session negotiator")

View File

@@ -95,7 +95,7 @@ func (p *MockPeer) Write(b []byte) (n int, err error) {
}
}
// Close tearsdown the connection, and fails any pending reads or writes.
// Close tears down the connection, and fails any pending reads or writes.
func (p *MockPeer) Close() error {
select {
case <-p.Quit: