Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fsamin committed Jul 31, 2020
1 parent 37ef49f commit b4440e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions engine/api/workflow_run_craft.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (

func (api *API) WorkflowRunCraft(ctx context.Context, tick time.Duration) error {
ticker := time.NewTicker(tick)
defer ticker.Stop()

for {
select {
Expand Down
2 changes: 1 addition & 1 deletion sdk/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ var (
ErrUnsupportedMediaType = Error{ID: 188, Status: http.StatusUnsupportedMediaType}
ErrNothingToPush = Error{ID: 189, Status: http.StatusBadRequest}
ErrWorkerErrorCommand = Error{ID: 190, Status: http.StatusBadRequest}
ErrRepoAnalyzeFailed = Error{ID: 191, Status: http.StatusInternalServerError}
ErrRepoAnalyzeFailed = Error{ID: 192, Status: http.StatusInternalServerError}
)

var errorsAmericanEnglish = map[int]string{
Expand Down

0 comments on commit b4440e5

Please sign in to comment.