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
e054ebe0
Unverified
Commit
e054ebe0
authored
Jan 26, 2024
by
Michael Yang
Committed by
GitHub
Jan 26, 2024
Browse files
Merge pull request #2212 from ollama/mxyng/fix-build
fix build
parents
6e0ea5ec
9d3dcfd0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
server/download.go
server/download.go
+1
-1
No files found.
server/download.go
View file @
e054ebe0
...
@@ -247,7 +247,7 @@ func (b *blobDownload) downloadChunk(ctx context.Context, requestURL *url.URL, w
...
@@ -247,7 +247,7 @@ func (b *blobDownload) downloadChunk(ctx context.Context, requestURL *url.URL, w
}
}
if
!
part
.
lastUpdated
.
IsZero
()
&&
time
.
Since
(
part
.
lastUpdated
)
>
5
*
time
.
Second
{
if
!
part
.
lastUpdated
.
IsZero
()
&&
time
.
Since
(
part
.
lastUpdated
)
>
5
*
time
.
Second
{
log
.
P
rintf
(
"%s part %d stalled; retrying"
,
b
.
Digest
[
7
:
19
],
part
.
N
)
s
log
.
Info
(
fmt
.
Sp
rintf
(
"%s part %d stalled; retrying"
,
b
.
Digest
[
7
:
19
],
part
.
N
)
)
// reset last updated
// reset last updated
part
.
lastUpdated
=
time
.
Time
{}
part
.
lastUpdated
=
time
.
Time
{}
return
errPartStalled
return
errPartStalled
...
...
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