Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
907e6c56
Commit
907e6c56
authored
Jul 31, 2023
by
Bruce MacDonald
Browse files
unlock downloadu in case or requestDownload err
parent
868e3b31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
server/download.go
server/download.go
+1
-0
No files found.
server/download.go
View file @
907e6c56
...
...
@@ -85,6 +85,7 @@ func monitorDownload(ctx context.Context, mp ModelPath, regOpts *RegistryOptions
// resume the download
resp
,
err
:=
requestDownload
(
ctx
,
mp
,
regOpts
,
f
)
if
err
!=
nil
{
downloadMu
.
Unlock
()
return
fmt
.
Errorf
(
"resume: %w"
,
err
)
}
inProgress
.
Store
(
f
.
Digest
,
f
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment