Browse Source

优化公共结构体

gitlink
Sydonian 2 years ago
parent
commit
d3fab3cc6d
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      internal/services/mq/storage.go

+ 1
- 2
internal/services/mq/storage.go View File

@@ -8,7 +8,6 @@ import (


"github.com/samber/lo" "github.com/samber/lo"
"gitlink.org.cn/cloudream/common/consts/errorcode" "gitlink.org.cn/cloudream/common/consts/errorcode"
"gitlink.org.cn/cloudream/common/models"
"gitlink.org.cn/cloudream/common/pkgs/logger" "gitlink.org.cn/cloudream/common/pkgs/logger"
"gitlink.org.cn/cloudream/common/pkgs/mq" "gitlink.org.cn/cloudream/common/pkgs/mq"
"gitlink.org.cn/cloudream/storage-agent/internal/config" "gitlink.org.cn/cloudream/storage-agent/internal/config"
@@ -196,7 +195,7 @@ func (svc *Service) StartStorageCreatePackage(msg *agtmq.StartStorageCreatePacka


objIter := iterator.NewUploadingObjectIterator(fullPath, uploadFilePathes) objIter := iterator.NewUploadingObjectIterator(fullPath, uploadFilePathes)


if msg.Redundancy.Type == models.RedundancyRep {
if msg.Redundancy.IsRepInfo() {
repInfo, err := msg.Redundancy.ToRepInfo() repInfo, err := msg.Redundancy.ToRepInfo()
if err != nil { if err != nil {
logger.Warnf("getting rep redundancy info: %s", err.Error()) logger.Warnf("getting rep redundancy info: %s", err.Error())


Loading…
Cancel
Save