chore: fix some typos in comments

Signed-off-by: cuibuwei <cuibuwei@gmail.com>
This commit is contained in:
cuibuwei 2024-04-13 19:56:31 +08:00
parent 4d1cd67d4d
commit 2c6416d5ae
2 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ func FetchCurrentDNSCryptCert(
certCountStr = " - additional certificate" certCountStr = " - additional certificate"
} }
if certInfo.CryptoConstruction == UndefinedConstruction { if certInfo.CryptoConstruction == UndefinedConstruction {
return certInfo, 0, fragmentsBlocked, errors.New("No useable certificate found") return certInfo, 0, fragmentsBlocked, errors.New("No usable certificate found")
} }
return certInfo, int(rtt.Nanoseconds() / 1000000), fragmentsBlocked, nil return certInfo, int(rtt.Nanoseconds() / 1000000), fragmentsBlocked, nil
} }

View File

@ -362,7 +362,7 @@ func findFarthestRoute(proxy *Proxy, name string, relayStamps []stamps.ServerSta
server := proxy.serversInfo.registeredServers[serverIdx] server := proxy.serversInfo.registeredServers[serverIdx]
proxy.serversInfo.RUnlock() proxy.serversInfo.RUnlock()
// Fall back to random relays until the logic is implementeed for non-DNSCrypt relays // Fall back to random relays until the logic is implemented for non-DNSCrypt relays
if server.stamp.Proto == stamps.StampProtoTypeODoHTarget { if server.stamp.Proto == stamps.StampProtoTypeODoHTarget {
candidates := make([]int, 0) candidates := make([]int, 0)
for relayIdx, relayStamp := range relayStamps { for relayIdx, relayStamp := range relayStamps {