mirror of
https://github.com/ollama/ollama.git
synced 2026-07-10 01:41:52 +00:00
server/internal/registry: remove superfluous progress bar flush (#10303)
This removes the extra flushProgress() at the end of handlePull. It is unnecessary because final progress updates are flushed in all cases of the main select loop.
This commit is contained in:
parent
3457a315b2
commit
369de832cd
1 changed files with 0 additions and 1 deletions
|
|
@ -284,7 +284,6 @@ func (s *Local) handlePull(w http.ResponseWriter, r *http.Request) error {
|
|||
fl.Flush()
|
||||
}
|
||||
}
|
||||
defer flushProgress()
|
||||
|
||||
t := time.NewTicker(1<<63 - 1) // "unstarted" timer
|
||||
start := sync.OnceFunc(func() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue