Skip to content

Commit 79cd92d

Browse files
committed
fix: use custom error package
1 parent 8631a07 commit 79cd92d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

sqle/server/auditplan/task_wrap.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,19 @@ package auditplan
33
import (
44
"context"
55
e "errors"
6-
"github.com/actiontech/sqle/sqle/common"
7-
"github.com/actiontech/sqle/sqle/driver"
8-
driverV2 "github.com/actiontech/sqle/sqle/driver/v2"
9-
"github.com/pkg/errors"
106
"net"
117
"regexp"
128
"strconv"
139
"sync"
1410
"time"
1511

12+
"github.com/actiontech/sqle/sqle/common"
13+
"github.com/actiontech/sqle/sqle/driver"
14+
driverV2 "github.com/actiontech/sqle/sqle/driver/v2"
15+
"github.com/pkg/errors"
16+
1617
"github.com/actiontech/sqle/sqle/dms"
17-
"github.com/actiontech/sqle/sqle/errors"
18+
sqleErr "github.com/actiontech/sqle/sqle/errors"
1819
"github.com/actiontech/sqle/sqle/log"
1920
"github.com/actiontech/sqle/sqle/model"
2021
"github.com/actiontech/sqle/sqle/utils"
@@ -230,7 +231,7 @@ func (at *TaskWrapper) extractSQL() {
230231
defer func() {
231232
status := model.LastCollectionNormal
232233
if err != nil {
233-
at.logger.Error(errors.NewAuditPlanExecuteExtractErr(err, at.ap.InstanceID, at.ap.Type))
234+
at.logger.Error(sqleErr.NewAuditPlanExecuteExtractErr(err, at.ap.InstanceID, at.ap.Type))
234235
status = model.LastCollectionAbnormal
235236
}
236237
updateErr := at.persist.UpdateAuditPlanInfoByAPID(at.ap.ID, map[string]interface{}{"last_collection_status": status})

0 commit comments

Comments
 (0)