mirror of
https://github.com/ollama/ollama.git
synced 2026-09-01 08:51:37 +00:00
Close chunked writers as soon as downloads complete, rather than deferring closure until Pull exits. This prevents exhausting file descriptors when pulling many layers. Instead of unbounded defers, use a WaitGroup and background goroutine to close each chunked writer as soon as its downloads finish. Also rename 'total' to 'received' for clarity. |
||
|---|---|---|
| .. | ||
| internal | ||
| testdata/tools | ||
| auth.go | ||
| create.go | ||
| create_test.go | ||
| download.go | ||
| fixblobs.go | ||
| fixblobs_test.go | ||
| images.go | ||
| layer.go | ||
| manifest.go | ||
| manifest_test.go | ||
| model.go | ||
| model_test.go | ||
| modelpath.go | ||
| modelpath_test.go | ||
| prompt.go | ||
| prompt_test.go | ||
| routes.go | ||
| routes_create_test.go | ||
| routes_delete_test.go | ||
| routes_generate_test.go | ||
| routes_list_test.go | ||
| routes_test.go | ||
| sched.go | ||
| sched_test.go | ||
| sparse_common.go | ||
| sparse_windows.go | ||
| upload.go | ||