Skip to content

Commit

Permalink
Change "All" Endpoint Timeouts #224 (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
arman sarder authored Nov 21, 2024
1 parent 14ae46a commit 3aceb23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/controllers/course.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func CourseById(c *gin.Context) {
}

func CourseAll(c *gin.Context) {
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)

var courses []schema.Course

Expand Down
2 changes: 1 addition & 1 deletion api/controllers/professor.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func ProfessorById(c *gin.Context) {
}

func ProfessorAll(c *gin.Context) {
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)

var professors []schema.Professor

Expand Down

0 comments on commit 3aceb23

Please sign in to comment.