Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
coreospackage
Commits
4f69a61c
Commit
4f69a61c
authored
7 years ago
by
Ajit Jagtap
Browse files
Options
Downloads
Plain Diff
Merge branch 'DownloadHelper_SSS' into 'master'
DownloadHelper modifications See merge request
!39
parents
24662501
75c4da95
Branches
Branches containing commit
1 merge request
!39
DownloadHelper modifications
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
downloadhelper/downloadHelper.go
+4
-2
downloadhelper/downloadHelper.go
with
4 additions
and
2 deletions
downloadhelper/downloadHelper.go
+
4
−
2
View file @
4f69a61c
...
...
@@ -91,13 +91,15 @@ func DownloadFile(sourcePath, destinationPath, jwtToken string, retryCnt int) (b
if
err
!=
nil
{
logginghelper
.
LogError
(
"Download failed: "
,
err
)
RestoreBackup
(
destinationPath
)
time
.
Sleep
(
200
*
time
.
Millisecond
)
continue
}
if
hash
==
ERR_FILE_HASH
{
logginghelper
.
LogError
(
"Download failed: "
,
err
)
RestoreBackup
(
destinationPath
)
time
.
Sleep
(
200
*
time
.
Millisecond
)
continue
}
time
.
Sleep
(
200
*
time
.
Millisecond
)
continue
}
}
if
resp
.
HTTPResponse
!=
nil
&&
(
resp
.
HTTPResponse
.
StatusCode
==
200
||
resp
.
HTTPResponse
.
StatusCode
==
206
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets