style: apply gofumpt formatting

This commit is contained in:
sam committed 2026-09-09 10:08:51 +00:00
1 parent d6fc2b3f1e
commit 694aaeb7cd
4 files changed
+8 -4

No files matched your search

+2 -1
View File
@@ -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,
+2 -1
View File
@@ -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,
+2 -1
View File
@@ -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)
+2 -1
View File
@@ -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)),
)