mirror of
https://github.com/tgdrive/teldrive.git
synced 2024-11-10 09:02:52 +08:00
chore: close upload pool after file upload
This commit is contained in:
parent
943a5012b9
commit
67e063ba00
1 changed files with 2 additions and 0 deletions
|
@ -162,6 +162,8 @@ func (us *UploadService) UploadFile(c *gin.Context) (*schemas.UploadPartOut, *ty
|
|||
|
||||
uploadPool := pool.NewPool(client, int64(us.cnf.PoolSize), middlewares...)
|
||||
|
||||
defer uploadPool.Close()
|
||||
|
||||
logger := logging.FromContext(c)
|
||||
|
||||
logger.Debugw("uploading chunk", "fileName", uploadQuery.FileName,
|
||||
|
|
Loading…
Reference in a new issue