mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-23 17:16:29 +00:00
cleanup: fix typos across multiple files
Does not affect code. Updates #cleanup Signed-off-by: Naasir <yoursdeveloper@protonmail.com>
This commit is contained in:
@@ -241,7 +241,7 @@ func (er *egressPodsReconciler) lookupPodRouteViaSvc(ctx context.Context, pod *c
|
|||||||
req.Close = true
|
req.Close = true
|
||||||
resp, err := er.httpClient.Do(req)
|
resp, err := er.httpClient.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// This is most likely because this is the first Pod and is not yet added to service endpints. Other
|
// This is most likely because this is the first Pod and is not yet added to service endpoints. Other
|
||||||
// error types are possible, but checking for those would likely make the system too fragile.
|
// error types are possible, but checking for those would likely make the system too fragile.
|
||||||
return unreachable, nil
|
return unreachable, nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ func debugCmd() *ffcli.Command {
|
|||||||
fs := newFlagSet("watch-ipn")
|
fs := newFlagSet("watch-ipn")
|
||||||
fs.BoolVar(&watchIPNArgs.netmap, "netmap", true, "include netmap in messages")
|
fs.BoolVar(&watchIPNArgs.netmap, "netmap", true, "include netmap in messages")
|
||||||
fs.BoolVar(&watchIPNArgs.initial, "initial", false, "include initial status")
|
fs.BoolVar(&watchIPNArgs.initial, "initial", false, "include initial status")
|
||||||
fs.BoolVar(&watchIPNArgs.rateLimit, "rate-limit", true, "rate limit messags")
|
fs.BoolVar(&watchIPNArgs.rateLimit, "rate-limit", true, "rate limit messages")
|
||||||
fs.IntVar(&watchIPNArgs.count, "count", 0, "exit after printing this many statuses, or 0 to keep going forever")
|
fs.IntVar(&watchIPNArgs.count, "count", 0, "exit after printing this many statuses, or 0 to keep going forever")
|
||||||
return fs
|
return fs
|
||||||
})(),
|
})(),
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ func init() {
|
|||||||
var serveCmd = func() *ffcli.Command {
|
var serveCmd = func() *ffcli.Command {
|
||||||
se := &serveEnv{lc: &localClient}
|
se := &serveEnv{lc: &localClient}
|
||||||
// previously used to serve legacy newFunnelCommand unless useWIPCode is true
|
// previously used to serve legacy newFunnelCommand unless useWIPCode is true
|
||||||
// change is limited to make a revert easier and full cleanup to come after the relase.
|
// change is limited to make a revert easier and full cleanup to come after the release.
|
||||||
// TODO(tylersmalley): cleanup and removal of newServeLegacyCommand as of 2023-10-16
|
// TODO(tylersmalley): cleanup and removal of newServeLegacyCommand as of 2023-10-16
|
||||||
return newServeV2Command(se, serve)
|
return newServeV2Command(se, serve)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1765,7 +1765,7 @@ func TestIsLegacyInvocation(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if gotTranslation != tt.translation {
|
if gotTranslation != tt.translation {
|
||||||
t.Fatalf("expected translaction to be %q but got %q", tt.translation, gotTranslation)
|
t.Fatalf("expected translation to be %q but got %q", tt.translation, gotTranslation)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ func TestRetryableErrors(t *testing.T) {
|
|||||||
{fmt.Errorf("%w: %w", errHTTPPostFailure, errors.New("bad post")), true},
|
{fmt.Errorf("%w: %w", errHTTPPostFailure, errors.New("bad post")), true},
|
||||||
{fmt.Errorf("%w: %w", errNoNodeKey, errors.New("not node key")), true},
|
{fmt.Errorf("%w: %w", errNoNodeKey, errors.New("not node key")), true},
|
||||||
{errBadHTTPResponse(429, "too may requests"), true},
|
{errBadHTTPResponse(429, "too may requests"), true},
|
||||||
{errBadHTTPResponse(500, "internal server eror"), true},
|
{errBadHTTPResponse(500, "internal server error"), true},
|
||||||
{errBadHTTPResponse(502, "bad gateway"), true},
|
{errBadHTTPResponse(502, "bad gateway"), true},
|
||||||
{errBadHTTPResponse(503, "service unavailable"), true},
|
{errBadHTTPResponse(503, "service unavailable"), true},
|
||||||
{errBadHTTPResponse(504, "gateway timeout"), true},
|
{errBadHTTPResponse(504, "gateway timeout"), true},
|
||||||
|
|||||||
Reference in New Issue
Block a user