Skip to content

Commit

Permalink
fix: increase timeout to 60s
Browse files Browse the repository at this point in the history
  • Loading branch information
jarvis8x7b committed Oct 16, 2024
1 parent 366a26a commit 407a99b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/controllers.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func CreateTasksController(c *gin.Context) {
}

taskService := task.NewTaskService()
tasks, errors := taskService.CreateTasksWithTimeout(requestBody, minerUser.ID, 10*time.Second)
tasks, errors := taskService.CreateTasksWithTimeout(requestBody, minerUser.ID, 60*time.Second)

if len(tasks) == 0 {
c.AbortWithStatusJSON(http.StatusBadRequest, defaultErrorResponse(errors))
Expand Down

0 comments on commit 407a99b

Please sign in to comment.