Skip to content

Commit e452ae5

Browse files
committed
Increase timeout to 60 secs
1 parent 8e61716 commit e452ae5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

main.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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-

0 commit comments

Comments
 (0)