Skip to content

Commit 3aceb23

Browse files
author
arman sarder
authored
Change "All" Endpoint Timeouts #224 (#235)
1 parent 14ae46a commit 3aceb23

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/controllers/course.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func CourseById(c *gin.Context) {
112112
}
113113

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

117117
var courses []schema.Course
118118

api/controllers/professor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func ProfessorById(c *gin.Context) {
122122
}
123123

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

127127
var professors []schema.Professor
128128

0 commit comments

Comments
 (0)