mirror of
https://github.com/ollama/ollama.git
synced 2025-10-11 02:43:58 +02:00
Merge pull request #750 from jmorganca/mxyng/concurrent-uploads
concurrent uploads
This commit is contained in:
@@ -365,7 +365,9 @@ func PushModelHandler(c *gin.Context) {
|
||||
Insecure: req.Insecure,
|
||||
}
|
||||
|
||||
ctx := context.Background()
|
||||
ctx, cancel := context.WithCancel(c.Request.Context())
|
||||
defer cancel()
|
||||
|
||||
if err := PushModel(ctx, req.Name, regOpts, fn); err != nil {
|
||||
ch <- gin.H{"error": err.Error()}
|
||||
}
|
||||
|
Reference in New Issue
Block a user