[DECO-531] Increase timeout for file import api calls (#223)

This PR increases the client side timeout for upload API calls to 10
minutes to give sync enough time to import larger files
This commit is contained in:
shreyas-goenka 2023-02-22 16:01:58 +01:00 committed by GitHub
parent 9d3a0da073
commit 2615d66945
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -51,7 +51,9 @@ func (r *RepoFiles) readLocal(relativePath string) ([]byte, error) {
} }
func (r *RepoFiles) writeRemote(ctx context.Context, relativePath string, content []byte) error { func (r *RepoFiles) writeRemote(ctx context.Context, relativePath string, content []byte) error {
apiClient, err := client.New(r.workspaceClient.Config) apiClientConfig := r.workspaceClient.Config
apiClientConfig.HTTPTimeoutSeconds = 600
apiClient, err := client.New(apiClientConfig)
if err != nil { if err != nil {
return err return err
} }