mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 00:10:25 +08:00 
			
		
		
		
	reafctor: pool
This commit is contained in:
		@@ -6,7 +6,6 @@ import (
 | 
			
		||||
	"mayfly-go/internal/db/api/vo"
 | 
			
		||||
	"mayfly-go/internal/db/application"
 | 
			
		||||
	"mayfly-go/internal/db/application/dto"
 | 
			
		||||
	"mayfly-go/internal/db/dbm"
 | 
			
		||||
	"mayfly-go/internal/db/domain/entity"
 | 
			
		||||
	"mayfly-go/internal/db/imsg"
 | 
			
		||||
	fileapp "mayfly-go/internal/file/application"
 | 
			
		||||
@@ -150,9 +149,8 @@ func (d *DbTransferTask) FileRun(rc *req.Ctx) {
 | 
			
		||||
	tFile, err := d.dbTransferFile.GetById(fm.Id)
 | 
			
		||||
	biz.IsTrue(tFile != nil && err == nil, "file not found")
 | 
			
		||||
 | 
			
		||||
	targetDbConn, err := d.dbApp.GetDbConn(fm.TargetDbId, fm.TargetDbName)
 | 
			
		||||
	targetDbConn, err := d.dbApp.GetDbConn(rc.MetaCtx, fm.TargetDbId, fm.TargetDbName)
 | 
			
		||||
	biz.ErrIsNilAppendErr(err, "failed to connect to the target database: %s")
 | 
			
		||||
	defer dbm.PutDbConn(targetDbConn)
 | 
			
		||||
 | 
			
		||||
	biz.ErrIsNilAppendErr(d.tagApp.CanAccess(rc.GetLoginAccount().Id, targetDbConn.Info.CodePath...), "%s")
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user