Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
whalecold committed Jun 30, 2023
1 parent ec810da commit 2534f99
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,18 @@ func initRetryContainer(param vo.ConfigParam, dest string,
return
}

for method, pilocy := range rcs {
if pilocy.BackupPolicy != nil && pilocy.FailurePolicy != nil {
for method, policy := range rcs {
if policy.BackupPolicy != nil && policy.FailurePolicy != nil {
klog.Warnf("[nacos] %s client policy for method %s BackupPolicy and FailurePolicy must not be set at same time",
dest, method)
continue
}
if pilocy.BackupPolicy == nil && pilocy.FailurePolicy == nil {
if policy.BackupPolicy == nil && policy.FailurePolicy == nil {
klog.Warnf("[nacos] %s client policy for method %s BackupPolicy and FailurePolicy must not be empty at same time",
dest, method)
continue
}
retryContainer.NotifyPolicyChange(method, *pilocy)
retryContainer.NotifyPolicyChange(method, *policy)
}
}

Expand Down

0 comments on commit 2534f99

Please sign in to comment.