Skip to content

Commit

Permalink
Make gofmt happy
Browse files Browse the repository at this point in the history
A gofmt check was added to CI, so we have to make it happy.

Avoid commits like this in the future :-)
  • Loading branch information
richiejp committed Aug 2, 2024
1 parent b3c0c51 commit 8e02947
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion go/cli/push/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ func (s *Pusher) startPortForwarder(ctx context.Context, wg *sync.WaitGroup) (ne
terror.Ackf(ctx, "conn read: %w", err)
}


if err := stream.CloseSend(); err != nil {
terror.Ackf(ctx, "stream close send: %w", err)
}
Expand Down
5 changes: 2 additions & 3 deletions go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (s *PushCmd) Run(g Globals) (err error) {

type DaemonStartCmd struct {
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"`
BuildkitdAddr string `env:"AYUP_BUILDKITD_ADDR" help:"The path to the buildkitd socket if not the default" default:"unix:///run/buildkit/buildkitd.sock"`
BuildkitdAddr string `env:"AYUP_BUILDKITD_ADDR" help:"The path to the buildkitd socket if not the default" default:"unix:///run/buildkit/buildkitd.sock"`
}

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

ContainerdAddr: s.ContainerdAddr,
BuildkitdAddr: s.BuildkitdAddr,
BuildkitdAddr: s.BuildkitdAddr,
}

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

Daemon struct {
Start DaemonStartCmd `cmd:"" help:"Start an Ayup service Daemon"`

} `cmd:"" help:"Self host Ayup"`

// maybe effected by https://github.com/open-telemetry/opentelemetry-go/issues/5562
Expand Down
2 changes: 1 addition & 1 deletion go/srv/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type Srv struct {
ImgName string

ContainerdAddr string
BuildkitdAddr string
BuildkitdAddr string

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

0 comments on commit 8e02947

Please sign in to comment.