Skip to content

Commit 30c2d97

Browse files
authored
Merge pull request #686 from shuoer86/master
firewall + firewalldb: fix typos
2 parents be2a129 + ab47cd6 commit 30c2d97

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

firewall/privacy_mapper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ func ObfuscateConfig(db firewalldb.PrivacyMapReader, configB []byte) ([]byte,
968968
_, err = strconv.ParseInt(value, 10, 64)
969969
length := len(value)
970970

971-
// Channel ids can have different lenghts depending on
971+
// Channel ids can have different lengths depending on
972972
// the blockheight, 20 is equivalent to 10E9 blocks.
973973
if err == nil && minChanIDLen <= length &&
974974
length <= maxChanIDLen {

firewall/privacy_mapper_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ func TestObfuscateConfig(t *testing.T) {
734734
name: "empty",
735735
},
736736
{
737-
// We substitue pubkeys of different forms.
737+
// We substitute pubkeys of different forms.
738738
name: "several pubkeys",
739739
config: []byte(`{"version":1,"list":` +
740740
`["d23da57575cdcb878ac191e1e0c8a5c4f061b11cfdc7a8ec5c9d495270de66fdbf",` +

firewalldb/privacy_mapper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ type PrivacyMapReader interface {
531531

532532
// PrivacyMapPairs is an in memory implementation of the PrivacyMapReader.
533533
type PrivacyMapPairs struct {
534-
// pairs is a map from real to psuedo strings.
534+
// pairs is a map from real to pseudo strings.
535535
pairs map[string]string
536536

537537
mu sync.Mutex

0 commit comments

Comments
 (0)