From a27450c2a2374a5379066d8f64823116c5fdc79c Mon Sep 17 00:00:00 2001 From: Jim Ma Date: Fri, 18 Mar 2022 14:23:36 +0800 Subject: [PATCH] fix: rpc cdn sync piece tasks (#1168) Signed-off-by: Jim Ma --- pkg/rpc/cdnsystem/client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/rpc/cdnsystem/client/client.go b/pkg/rpc/cdnsystem/client/client.go index 16dba66e93a..1fc3236acee 100644 --- a/pkg/rpc/cdnsystem/client/client.go +++ b/pkg/rpc/cdnsystem/client/client.go @@ -123,7 +123,7 @@ func (cc *cdnClient) SyncPieceTasks(ctx context.Context, addr dfnet.NetAddr, req if err != nil { return nil, err } - return client.GetPieceTasks(ctx, req, opts...) + return client.SyncPieceTasks(ctx, opts...) }, 0.2, 2.0, 3, nil) if err != nil { logger.WithTaskID(req.TaskId).Infof("SyncPieceTasks: invoke cdn node %s SyncPieceTasks failed: %v", addr.GetEndpoint(), err)