all: fix more typos caused by unnecessary repetition
Updates #cleanup Change-Id: I5c0b8f0152581231252ab97dd1820d8b3fcbe450 Signed-off-by: Alex Chan <alexc@tailscale.com>
This commit is contained in:
@@ -56,7 +56,7 @@ func srcMatches(m *filtertype.Match, srcAddr netip.Addr, hasCap CapTestFunc) boo
|
||||
// CapTestFunc is the function signature of a function that tests whether srcIP
|
||||
// has a given capability.
|
||||
//
|
||||
// It it used in the fast path of evaluating filter rules so should be fast.
|
||||
// It is used in the fast path of evaluating filter rules so should be fast.
|
||||
type CapTestFunc = func(srcIP netip.Addr, cap tailcfg.NodeCapability) bool
|
||||
|
||||
func (ms matches) matchIPsOnly(q *packet.Parsed, hasCap CapTestFunc) bool {
|
||||
|
||||
@@ -131,7 +131,7 @@ var (
|
||||
//
|
||||
// TODO(bradfitz): make this return an IPSet and plumb that all
|
||||
// around, and ultimately use a new version of IPSet.ContainsFunc like
|
||||
// Contains16Func that works in [16]byte address, so we we can match
|
||||
// Contains16Func that works in [16]byte address, so we can match
|
||||
// at runtime without allocating?
|
||||
func parseIPSet(arg string) (prefixes []netip.Prefix, peerCap tailcfg.NodeCapability, err error) {
|
||||
if arg == "*" {
|
||||
|
||||
@@ -2401,7 +2401,7 @@ func (c *Conn) handleDiscoMessage(msg []byte, src epAddr, shouldBeRelayHandshake
|
||||
if isCached {
|
||||
metricCachedPeerContactDERP.Add(1)
|
||||
}
|
||||
// If we did not already have an an endpoint for this peer, even a stale
|
||||
// If we did not already have an endpoint for this peer, even a stale
|
||||
// one, record how long it has been since the endpoint was initialized.
|
||||
if !lastBest.ap.IsValid() {
|
||||
c.logf("magicsock: new contact: peer=%s usec=%d cached=%v via=derp",
|
||||
|
||||
@@ -579,7 +579,7 @@ func TestPickDERPFallback(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// Test that that the pointer value of c is blended in and
|
||||
// Test that the pointer value of c is blended in and
|
||||
// distribution over nodes works.
|
||||
got := map[int]int{}
|
||||
for range 50 {
|
||||
@@ -1520,7 +1520,7 @@ func TestDiscoStringLogRace(t *testing.T) {
|
||||
wg.Wait()
|
||||
}
|
||||
|
||||
// Test32bitAlignment verifies that that the 64-bit atomic mono.Time fields are
|
||||
// Test32bitAlignment verifies that the 64-bit atomic mono.Time fields are
|
||||
// 64-bit aligned, so that StoreAtomic and LoadAtomic won't panic on 32-bit
|
||||
// platforms.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user