Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Commit 1f8a494

Browse files
committed
Add delay
1 parent df9776e commit 1f8a494

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/job/feed_job.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func feedJob(ctx context.Context, store di.StoreComponent, cfg *config.Config) e
3737
grpclog.Infof("feed job: created %v entries", n)
3838
}
3939

40-
<-time.After(100 * time.Millisecond)
40+
time.Sleep(500 * time.Millisecond)
4141
}
4242

4343
return nil

app/job/github_job.go

+2
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ func githubJob(ctx context.Context, store di.StoreComponent, cfg *config.Config)
6767
if err != nil {
6868
return err
6969
}
70+
71+
time.Sleep(500 * time.Millisecond)
7072
}
7173
}
7274

0 commit comments

Comments
 (0)