Skip to content

Commit c0be164

Browse files
authored
Show execution progress immediately (#322)
Tiny change but I think it makes a difference: instead of a 1s delay in which we show nothing (and seem to hang) we show the spinner immediately.
1 parent 57b067b commit c0be164

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/campaigns/service.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ func (svc *Service) ExecuteCampaignSpec(ctx context.Context, repos []*graphql.Re
175175
done := make(chan struct{})
176176
if progress != nil {
177177
go func() {
178+
progress(statuses)
179+
178180
ticker := time.NewTicker(1 * time.Second)
179181
defer ticker.Stop()
180182

0 commit comments

Comments
 (0)