fixed loadbalanced routes with same alias cause conflict

This commit is contained in:
yusing
2024-10-19 01:20:08 +08:00
parent b296fb2965
commit 8b8e1773e8
4 changed files with 8 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ var (
ErrOutOfRange = stderrors.New("out of range")
ErrTypeError = stderrors.New("type error")
ErrTypeMismatch = stderrors.New("type mismatch")
ErrPanicRecv = stderrors.New("panic")
ErrPanicRecv = stderrors.New("panic recovered from")
)
const fmtSubjectWhat = "%w %v: %q"
@@ -79,5 +79,5 @@ func TypeMismatch[Expect any](value any) NestedError {
}
func PanicRecv(format string, args ...any) NestedError {
return errorf("%w%s", ErrPanicRecv, fmt.Sprintf(format, args...))
return errorf("%w %s", ErrPanicRecv, fmt.Sprintf(format, args...))
}