Skip to content

Commit 8ed3684

Browse files
committed
fix(hookd): shorten timeout to avoid clusters not connected hanging for 30 mins
1 parent 6cdbd2f commit 8ed3684

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/grpc/dispatchserver/dispatchserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func (s *dispatchServer) Deployments(opts *pb.GetDeploymentOpts, stream pb.Dispa
132132
if err != nil {
133133
return err
134134
}
135-
case <-time.After(30 * time.Minute):
135+
case <-time.After(15 * time.Minute):
136136
log.Warnf("Connection from cluster '%s' timed out", opts.Cluster)
137137
return fmt.Errorf("timeout")
138138
}

0 commit comments

Comments
 (0)