Skip to content

Commit f20facb

Browse files
authored
Revise deprecation comment for ErrRPCFinish
Updated deprecation comment for ErrRPCFinish to clarify its purpose and backward compatibility.
1 parent 7a2bf1d commit f20facb

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

pkg/kerrors/kerrors.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ var (
4242
ErrBiz = &basicError{"biz error"}
4343

4444
ErrRetry = &basicError{"retry error"}
45-
// ErrRPCFinish happens when retry enabled and there is one call has finished
46-
//
47-
// Deprecated: no longer use this definition, but we still keep it to avoid breaking changes.
45+
// Deprecated: ErrRPCFinish was used to indicate that the result of this retry
46+
// call should be discarded because another attempt has already received and
47+
// started decoding the response.
48+
// No longer needed since v0.15.0, but kept for backward compatibility.
4849
ErrRPCFinish = &basicError{"rpc call finished"}
4950
// ErrRoute happens when router fail to route this call
5051
ErrRoute = &basicError{"rpc route failed"}

0 commit comments

Comments
 (0)