From d3fab3cc6d907550eadbcdc60ccf8c4323a68355 Mon Sep 17 00:00:00 2001 From: Sydonian <794346190@qq.com> Date: Thu, 24 Aug 2023 17:13:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=85=AC=E5=85=B1=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/services/mq/storage.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/services/mq/storage.go b/internal/services/mq/storage.go index 3aeeabb..1adfc12 100644 --- a/internal/services/mq/storage.go +++ b/internal/services/mq/storage.go @@ -8,7 +8,6 @@ import ( "github.com/samber/lo" "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/mq" "gitlink.org.cn/cloudream/storage-agent/internal/config" @@ -196,7 +195,7 @@ func (svc *Service) StartStorageCreatePackage(msg *agtmq.StartStorageCreatePacka objIter := iterator.NewUploadingObjectIterator(fullPath, uploadFilePathes) - if msg.Redundancy.Type == models.RedundancyRep { + if msg.Redundancy.IsRepInfo() { repInfo, err := msg.Redundancy.ToRepInfo() if err != nil { logger.Warnf("getting rep redundancy info: %s", err.Error())