perf: remove lc dependency

This commit is contained in:
2024-12-12 23:13:54 +03:30
parent 3912ecef44
commit d3fd04b20c
19 changed files with 182 additions and 500 deletions

View File

@@ -7,7 +7,8 @@ import (
"os"
"strings"
"gitea.com/logicamp/lc"
"flink-kube-operator/pkg"
api "github.com/logi-camp/go-flink-client"
gonanoid "github.com/matoous/go-nanoid/v2"
"go.uber.org/zap"
@@ -33,7 +34,7 @@ func (JarFile *JarFile) Upload(flinkClient *api.Client) (fileName string, err er
resp, err := flinkClient.UploadJar(JarFile.filePath)
if err != nil {
lc.Logger.Error("[main] error uploading jar", zap.Error(err))
pkg.Logger.Error("[main] error uploading jar", zap.Error(err))
}
filePathParts := strings.Split(resp.FileName, "/")
fileName = filePathParts[len(filePathParts)-1]