From e8aec87b1083588743d5bc935956a842b86d165a Mon Sep 17 00:00:00 2001 From: Sydonian <794346190@qq.com> Date: Tue, 25 Jul 2023 11:28:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96serder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/services/cmd/storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/services/cmd/storage.go b/internal/services/cmd/storage.go index 0ab3bf0..d1d71ca 100644 --- a/internal/services/cmd/storage.go +++ b/internal/services/cmd/storage.go @@ -46,7 +46,7 @@ func (service *Service) StartMovingObjectToStorage(msg *agtmsg.StartMovingObject func (svc *Service) moveRepObject(msg *agtmsg.StartMovingObjectToStorage, outFilePath string) (string, error) { var repInfo ramsg.ObjectRepInfo - err := serder.MapToObject(msg.RedundancyData.(map[string]any), &repInfo) + err := serder.AnyToAny(msg.RedundancyData, &repInfo) if err != nil { return "", fmt.Errorf("redundancy data to rep info failed, err: %w", err) }