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
9d3dcfd0
Commit
9d3dcfd0
authored
Jan 26, 2024
by
Michael Yang
Browse files
fix logging
parent
6e0ea5ec
Changes
1
Hide 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 @
9d3dcfd0
...
@@ -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