Skip to content

Commit 8e02947

Browse files
committed
Make gofmt happy
A gofmt check was added to CI, so we have to make it happy. Avoid commits like this in the future :-)
1 parent b3c0c51 commit 8e02947

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

go/cli/push/run.go

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ func (s *Pusher) startPortForwarder(ctx context.Context, wg *sync.WaitGroup) (ne
3737
terror.Ackf(ctx, "conn read: %w", err)
3838
}
3939

40-
4140
if err := stream.CloseSend(); err != nil {
4241
terror.Ackf(ctx, "stream close send: %w", err)
4342
}

go/main.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func (s *PushCmd) Run(g Globals) (err error) {
5858

5959
type DaemonStartCmd struct {
6060
ContainerdAddr string `env:"AYUP_CONTAINERD_ADDR" help:"The path to the containerd socket if not using Docker's" default:"/var/run/docker/containerd/containerd.sock"`
61-
BuildkitdAddr string `env:"AYUP_BUILDKITD_ADDR" help:"The path to the buildkitd socket if not the default" default:"unix:///run/buildkit/buildkitd.sock"`
61+
BuildkitdAddr string `env:"AYUP_BUILDKITD_ADDR" help:"The path to the buildkitd socket if not the default" default:"unix:///run/buildkit/buildkitd.sock"`
6262
}
6363

6464
func (s *DaemonStartCmd) Run(g Globals) (err error) {
@@ -77,7 +77,7 @@ func (s *DaemonStartCmd) Run(g Globals) (err error) {
7777
ImgName: "docker.io/richardprem/ayup:test",
7878

7979
ContainerdAddr: s.ContainerdAddr,
80-
BuildkitdAddr: s.BuildkitdAddr,
80+
BuildkitdAddr: s.BuildkitdAddr,
8181
}
8282

8383
err = r.RunServer(ctx)
@@ -104,7 +104,6 @@ var cli struct {
104104

105105
Daemon struct {
106106
Start DaemonStartCmd `cmd:"" help:"Start an Ayup service Daemon"`
107-
108107
} `cmd:"" help:"Self host Ayup"`
109108

110109
// maybe effected by https://github.com/open-telemetry/opentelemetry-go/issues/5562

go/srv/lib.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type Srv struct {
3333
ImgName string
3434

3535
ContainerdAddr string
36-
BuildkitdAddr string
36+
BuildkitdAddr string
3737

3838
// Instance of a push, here while we don't have apps, users, sessions etc.
3939
push Push

0 commit comments

Comments
 (0)