multi: fix canceled spelling

This commit is contained in:
Joost Jager committed 2019-10-03 17:27:36 +02:00
1 parent 989de44a69
commit b58dbb2d70
31 files changed
+603 -603

No files matched your search

+1 -1
View File
@@ -186,7 +186,7 @@ out:
// safely close the channel used to send epoch
// notifications, in order to notify any
// listeners that the intent has been
// cancelled.
// canceled.
close(b.blockEpochClients[msg.epochID].epochChan)
delete(b.blockEpochClients, msg.epochID)
+1 -1
View File
@@ -300,7 +300,7 @@ out:
// safely close the channel used to send epoch
// notifications, in order to notify any
// listeners that the intent has been
// cancelled.
// canceled.
close(b.blockEpochClients[msg.epochID].epochChan)
delete(b.blockEpochClients, msg.epochID)
}
+1 -1
View File
@@ -141,7 +141,7 @@ type ChainNotifier interface {
// Stops the concrete ChainNotifier. Once stopped, the ChainNotifier
// should disallow any future requests from potential clients.
// Additionally, all pending client notifications will be cancelled
// Additionally, all pending client notifications will be canceled
// by closing the related channels on the *Event's.
Stop() error
}
+5 -5
View File
@@ -919,7 +919,7 @@ func testCancelSpendNtfn(node *rpctest.Harness,
notifier chainntnfs.TestChainNotifier, scriptDispatch bool, t *testing.T) {
// We'd like to test that once a spend notification is registered, it
// can be cancelled before the notification is dispatched.
// can be canceled before the notification is dispatched.
// First, we'll start by creating a new output that we can spend
// ourselves.
@@ -1006,10 +1006,10 @@ func testCancelSpendNtfn(node *rpctest.Harness,
select {
case _, ok := <-spendClients[1].Spend:
if ok {
t.Fatalf("spend ntfn should have been cancelled")
t.Fatalf("spend ntfn should have been canceled")
}
case <-time.After(20 * time.Second):
t.Fatalf("spend ntfn never cancelled")
t.Fatalf("spend ntfn never canceled")
}
}
@@ -1045,7 +1045,7 @@ func testCancelEpochNtfn(node *rpctest.Harness,
select {
case _, ok := <-epochClients[0].Epochs:
if ok {
t.Fatalf("epoch notification should have been cancelled")
t.Fatalf("epoch notification should have been canceled")
}
case <-time.After(2 * time.Second):
t.Fatalf("epoch notification not sent")
@@ -1056,7 +1056,7 @@ func testCancelEpochNtfn(node *rpctest.Harness,
select {
case _, ok := <-epochClients[1].Epochs:
if !ok {
t.Fatalf("epoch was cancelled")
t.Fatalf("epoch was canceled")
}
case <-time.After(20 * time.Second):
t.Fatalf("epoch notification not sent")
+1 -1
View File
@@ -302,7 +302,7 @@ out:
// safely close the channel used to send epoch
// notifications, in order to notify any
// listeners that the intent has been
// cancelled.
// canceled.
close(n.blockEpochClients[msg.epochID].epochChan)
delete(n.blockEpochClients, msg.epochID)
}