mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 22:21:18 +02:00
trivial: Fix spelling errors
- Fixes some spelling in code comments and a couple of function names
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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")
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user