firewall+firewalldb: fix typos

This commit is contained in:
shuoer86 2023-11-24 21:15:58 +08:00
parent be2a1292e3
commit ab47cd64f7
No known key found for this signature in database
GPG key ID: 84A704A15F88ADAD
3 changed files with 3 additions and 3 deletions

View file

@ -968,7 +968,7 @@ func ObfuscateConfig(db firewalldb.PrivacyMapReader, configB []byte) ([]byte,
_, err = strconv.ParseInt(value, 10, 64)
length := len(value)
// Channel ids can have different lenghts depending on
// Channel ids can have different lengths depending on
// the blockheight, 20 is equivalent to 10E9 blocks.
if err == nil && minChanIDLen <= length &&
length <= maxChanIDLen {

View file

@ -734,7 +734,7 @@ func TestObfuscateConfig(t *testing.T) {
name: "empty",
},
{
// We substitue pubkeys of different forms.
// We substitute pubkeys of different forms.
name: "several pubkeys",
config: []byte(`{"version":1,"list":` +
`["d23da57575cdcb878ac191e1e0c8a5c4f061b11cfdc7a8ec5c9d495270de66fdbf",` +

View file

@ -531,7 +531,7 @@ type PrivacyMapReader interface {
// PrivacyMapPairs is an in memory implementation of the PrivacyMapReader.
type PrivacyMapPairs struct {
// pairs is a map from real to psuedo strings.
// pairs is a map from real to pseudo strings.
pairs map[string]string
mu sync.Mutex