chore: update timeout settings (#141)
Co-authored-by: hardy <luohf@infinilabs.com>
This commit is contained in:
parent
71d291fdf1
commit
63125deb02
|
@ -108,7 +108,7 @@ func refreshNodesInfo(instanceID, instanceEndpoint string) (*elastic.DiscoveryRe
|
||||||
return nil, fmt.Errorf("error on get binding nodes info: %w", err)
|
return nil, fmt.Errorf("error on get binding nodes info: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
ctxTimeout, cancel := context.WithTimeout(context.Background(), time.Second*10)
|
ctxTimeout, cancel := context.WithTimeout(context.Background(), time.Second*30)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
nodesInfo, err := GetElasticsearchNodesViaAgent(ctxTimeout, instanceEndpoint)
|
nodesInfo, err := GetElasticsearchNodesViaAgent(ctxTimeout, instanceEndpoint)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue