Jelajahi Sumber

add timeout for health check

Henry Oswald 11 tahun lalu
induk
melakukan
bf3e568db9
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      services/spelling/app/coffee/HealthCheckController.coffee

+ 1 - 0
services/spelling/app/coffee/HealthCheckController.coffee

@@ -10,6 +10,7 @@ module.exports =
 			json:
 			json:
 				words:["helllo"]
 				words:["helllo"]
 				language: "en"
 				language: "en"
+			timeout: 1000 * 20
 		request.post opts, (err, response, body)->
 		request.post opts, (err, response, body)->
 			console.log body?.misspellings[0]?.suggestions.length
 			console.log body?.misspellings[0]?.suggestions.length
 			numberOfSuggestions = body?.misspellings[0]?.suggestions?.length
 			numberOfSuggestions = body?.misspellings[0]?.suggestions?.length