chore: close upload pool after file upload

This commit is contained in:
divyam234 2024-06-03 01:57:34 +05:30
parent 943a5012b9
commit 67e063ba00

View file

@ -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,