Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
justlorain committed Mar 28, 2024
1 parent f7ab509 commit ac6ff96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cron/cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,7 @@ func UpdateRepoData(ctx context.Context, rd *RepoData) error {
}
if !rd.LastUpdate.IsZero() || rd.EndCursor != "" {
if err := storage.UpdateCursor(ctx, &model.Cursor{
RepoNodeID: rd.Repo.ID,
LastUpdate: rd.LastUpdate,
EndCursor: rd.EndCursor,
}); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion cron/cron_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestInitTask(t *testing.T) {
storage.Init()
graphql.Init()
rest.Init()
InitTask(context.Background()) // over 8 min
InitTask(context.Background()) // around 9 min for cloudwego init
}

func TestUpdateTask(t *testing.T) {
Expand Down

0 comments on commit ac6ff96

Please sign in to comment.