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)
|
||||
}
|
||||
|
||||
ctxTimeout, cancel := context.WithTimeout(context.Background(), time.Second*10)
|
||||
ctxTimeout, cancel := context.WithTimeout(context.Background(), time.Second*30)
|
||||
defer cancel()
|
||||
nodesInfo, err := GetElasticsearchNodesViaAgent(ctxTimeout, instanceEndpoint)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue