multi: Fix typos [skip ci]

This commit is contained in:
Dimitris Apostolou committed 2022-01-24 12:19:02 +02:00
1 parent f50950640f
commit 530a2059e5
139 files changed
+254 -254

No files matched your search

+4 -4
View File
@@ -24,7 +24,7 @@ type PaymentShard interface {
AMP() *record.AMP
}
// ShardTracker is an interfae representing a tracker that keeps track of the
// ShardTracker is an interface representing a tracker that keeps track of the
// inflight shards of a payment, and is able to assign new shards the correct
// options such as hash and extra records.
type ShardTracker interface {
@@ -41,11 +41,11 @@ type ShardTracker interface {
CancelShard(uint64) error
// GetHash retrieves the hash used by the shard of the given attempt
// ID. This wil return an error if the attempt ID is unknown.
// ID. This will return an error if the attempt ID is unknown.
GetHash(uint64) (lntypes.Hash, error)
}
// Shard is a struct used for simple shards where we obly need to keep map it
// Shard is a struct used for simple shards where we only need to keep map it
// to a single hash.
type Shard struct {
hash lntypes.Hash
@@ -82,7 +82,7 @@ type SimpleShardTracker struct {
// ShardTracker interface.
var _ ShardTracker = (*SimpleShardTracker)(nil)
// NewSimpleShardTracker creates a new intance of the SimpleShardTracker with
// NewSimpleShardTracker creates a new instance of the SimpleShardTracker with
// the given payment hash and existing attempts.
func NewSimpleShardTracker(paymentHash lntypes.Hash,
shards map[uint64]lntypes.Hash) ShardTracker {
+1 -1
View File
@@ -28,7 +28,7 @@ func TestSimpleShardTracker(t *testing.T) {
_, err := tracker.GetHash(0)
require.Error(t, err)
// Getting id 1 should workd.
// Getting id 1 should work.
hash1, err := tracker.GetHash(1)
require.NoError(t, err)