Skip to content

Commit bf42868

Browse files
committed
fix: increase update timeout
update meme now requires 3 network requests to R2 (one for final image + 1 for saving old copy)
1 parent bf11e7d commit bf42868

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/gateway/internal/server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ func (s *Server) PatchMeme(w http.ResponseWriter, r *http.Request) {
545545
}
546546
}
547547

548-
ctx, cancel := context.WithTimeout(r.Context(), 2*time.Second)
548+
ctx, cancel := context.WithTimeout(r.Context(), 10*time.Second)
549549
defer cancel()
550550
resp, err := s.memeClient.UpdateMeme(ctx, updateRequest)
551551
if err != nil {

0 commit comments

Comments
 (0)