Skip to content

Commit

Permalink
I changed the timeout time from 10s to 30s. I figured 30s would allow…
Browse files Browse the repository at this point in the history
… the system to gather the data in time, and that 30s wasnt outrageously long time. Please let me know if I completed the task properly or if there should be any more changes thanks.
  • Loading branch information
armansarder committed Nov 4, 2024
1 parent 966e2cb commit bbb9ff9
Showing 1 changed file with 1 addition and 1 deletion.
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 bbb9ff9

Please sign in to comment.