Feat: use sync.pool to obtain new FileSystem instance
This commit is contained in:
@@ -24,6 +24,7 @@ func SlaveUpload(c *gin.Context) {
|
||||
c.JSON(200, serializer.Err(serializer.CodePolicyNotAllowed, err.Error(), err))
|
||||
return
|
||||
}
|
||||
defer fs.Recycle()
|
||||
fs.Handler = local.Handler{}
|
||||
|
||||
// 从请求中取得上传策略
|
||||
|
||||
Reference in New Issue
Block a user