p2p/nat: fix typos in comments (#29536)

pull/29541/head
Seungbae Yu 5 months ago committed by GitHub
parent 84b12df09e
commit 67422e2a56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      p2p/nat/natpmp.go
  2. 4
      p2p/nat/natupnp.go

@ -26,7 +26,7 @@ import (
natpmp "github.com/jackpal/go-nat-pmp"
)
// natPMPClient adapts the NAT-PMP protocol implementation so it conforms to
// pmp adapts the NAT-PMP protocol implementation so it conforms to
// the common interface.
type pmp struct {
gw net.IP

@ -205,8 +205,8 @@ func discoverUPnP() Interface {
return nil
}
// finds devices matching the given target and calls matcher for all
// advertised services of each device. The first non-nil service found
// discover finds devices matching the given target and calls matcher for
// all advertised services of each device. The first non-nil service found
// is sent into out. If no service matched, nil is sent.
func discover(out chan<- *upnp, target string, matcher func(goupnp.ServiceClient) *upnp) {
devs, err := goupnp.DiscoverDevices(target)

Loading…
Cancel
Save