Merge pull request #2212 from ollama/mxyng/fix-build

fix build
This commit is contained in:
Michael Yang 2024-01-26 11:19:08 -08:00 committed by GitHub
commit e054ebe059
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.Printf("%s part %d stalled; retrying", b.Digest[7:19], part.N) slog.Info(fmt.Sprintf("%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