diff --git a/internal/app/archied/drain.go b/internal/app/archied/drain.go index 53c7ce3d7..ec283bf54 100644 --- a/internal/app/archied/drain.go +++ b/internal/app/archied/drain.go @@ -81,7 +81,8 @@ func (b *boot) startDrainMonitor(ctx context.Context) { } reader := drainio.New(DefaultDrainRequestPath(), nil) go func() { - err := monitorDrainRequests(ctx, + err := monitorDrainRequests( + ctx, func() (drain.Decision, error) { return reader.Check() }, func() { b.shutdown() }, b.log, diff --git a/internal/app/archieui/run.go b/internal/app/archieui/run.go index 5b1c35b84..39f546432 100644 --- a/internal/app/archieui/run.go +++ b/internal/app/archieui/run.go @@ -68,7 +68,8 @@ func Run(ctx context.Context, options Options) error { return fmt.Errorf("listen for ui: %w", err) } cleanups = append(cleanups, func() { _ = listener.Close() }) - log.Info("archie-ui running", + log.Info( + "archie-ui running", "addr", listener.Addr().String(), "open", webui.DashboardURL(listener.Addr().String(), opts.Token), "gateway", opts.Gateway.Target, diff --git a/internal/daemon/dispatch_bindings_test.go b/internal/daemon/dispatch_bindings_test.go index c0ae262bf..32994f344 100644 --- a/internal/daemon/dispatch_bindings_test.go +++ b/internal/daemon/dispatch_bindings_test.go @@ -348,7 +348,8 @@ func newDispatchDaemonWithRepos(t *testing.T, s *store.Store, repos []config.Rep func assertDispatchRecorded(t *testing.T, s *store.Store, bindingID, taskID int64) { t.Helper() var gotBindingID, gotTaskID int64 - if err := s.DB().QueryRowContext(t.Context(), + if err := s.DB().QueryRowContext( + t.Context(), `SELECT binding_id, task_id FROM binding_dispatches WHERE binding_id=?`, bindingID, ).Scan(&gotBindingID, &gotTaskID); err != nil { t.Fatalf("binding_dispatches row missing: %v", err) diff --git a/internal/infrastructure/gatewayrpc/dial.go b/internal/infrastructure/gatewayrpc/dial.go index badc070bb..8092bd9e7 100644 --- a/internal/infrastructure/gatewayrpc/dial.go +++ b/internal/infrastructure/gatewayrpc/dial.go @@ -34,7 +34,8 @@ func Dial(target, token string, options ...grpc.DialOption) (*Client, func(), er } opts := []grpc.DialOption{grpc.WithTransportCredentials(insecure.NewCredentials())} if token != "" { - opts = append(opts, + opts = append( + opts, grpc.WithUnaryInterceptor(UnaryClientTokenInterceptor(token)), grpc.WithStreamInterceptor(StreamClientTokenInterceptor(token)), )