From 2615d66945b4512751632bd5b42021d336bb5d6c Mon Sep 17 00:00:00 2001 From: shreyas-goenka <88374338+shreyas-goenka@users.noreply.github.com> Date: Wed, 22 Feb 2023 16:01:58 +0100 Subject: [PATCH] [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 --- libs/sync/repofiles/repofiles.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/sync/repofiles/repofiles.go b/libs/sync/repofiles/repofiles.go index 56bf6f57..60864a7c 100644 --- a/libs/sync/repofiles/repofiles.go +++ b/libs/sync/repofiles/repofiles.go @@ -51,7 +51,9 @@ func (r *RepoFiles) readLocal(relativePath string) ([]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 { return err }