File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ func main() {
5959 }
6060
6161 http .HandleFunc ("/send" , func (w http.ResponseWriter , r * http.Request ) {
62- ctx , cancel := context .WithTimeout (context .Background (), time .Second )
62+ ctx , cancel := context .WithTimeout (context .Background (), 60 * time .Second )
6363 defer cancel ()
6464 requests := requestsPool [rand .Intn (len (requestsPool ))]
6565 if len (requests ) == 1 {
@@ -109,7 +109,7 @@ func main() {
109109 })
110110
111111 http .HandleFunc ("/echo" , func (w http.ResponseWriter , r * http.Request ) {
112- ctx , cancel := context .WithTimeout (context .Background (), time .Second )
112+ ctx , cancel := context .WithTimeout (context .Background (), 60 * time .Second )
113113 defer cancel ()
114114 var req serving.GetFeastServingInfoRequest
115115 _ , err := client .GetFeastServingInfo (ctx , & req )
@@ -133,4 +133,3 @@ func postProcessResponse(resp *feast.OnlineFeaturesResponse) {
133133 }
134134 }
135135}
136-
You can’t perform that action at this time.
0 commit comments