all: gofmt all

Well, goimports actually (which adds the normal import grouping order we do)

Change-Id: I0ce1b1c03185f3741aad67c14a7ec91a838de389
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/4577/head
Brad Fitzpatrick 3 years ago committed by Brad Fitzpatrick
parent deb56f276e
commit 6bed781259

@ -428,7 +428,7 @@ func runFileGetOneBatch(ctx context.Context, dir string) []error {
if len(errs) > 100 { if len(errs) > 100 {
// Likely, everything is broken. // Likely, everything is broken.
// Don't try to receive any more files in this batch. // Don't try to receive any more files in this batch.
errs = append(errs, fmt.Errorf("too many errors in runFileGetOneBatch(). %d files unexamined", len(wfs) - i)) errs = append(errs, fmt.Errorf("too many errors in runFileGetOneBatch(). %d files unexamined", len(wfs)-i))
break break
} }
writtenFile, size, err := receiveFile(ctx, wf, dir) writtenFile, size, err := receiveFile(ctx, wf, dir)

@ -9,4 +9,3 @@ package main
// Force registration of tailssh with LocalBackend. // Force registration of tailssh with LocalBackend.
import _ "tailscale.com/ssh/tailssh" import _ "tailscale.com/ssh/tailssh"

@ -1044,7 +1044,7 @@ func (c *Client) measureHTTPSLatency(ctx context.Context, reg *tailcfg.DERPRegio
} }
hc := &http.Client{Transport: tr} hc := &http.Client{Transport: tr}
req, err := http.NewRequestWithContext(ctx, "GET", "https://" + node.HostName + "/derp/latency-check", nil) req, err := http.NewRequestWithContext(ctx, "GET", "https://"+node.HostName+"/derp/latency-check", nil)
if err != nil { if err != nil {
return 0, ip, err return 0, ip, err
} }

@ -6,9 +6,10 @@ package winnet
import ( import (
"fmt" "fmt"
"github.com/go-ole/go-ole"
"syscall" "syscall"
"unsafe" "unsafe"
"github.com/go-ole/go-ole"
) )
func (v *INetworkConnection) GetAdapterId() (string, error) { func (v *INetworkConnection) GetAdapterId() (string, error) {

Loading…
Cancel
Save