From 7ed5956af01d37b5a8acd6314f925895ab944b1d Mon Sep 17 00:00:00 2001 From: cfzjywxk Date: Fri, 3 Mar 2023 11:22:43 +0800 Subject: [PATCH] avoid formating string Signed-off-by: cfzjywxk --- util/request_source.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/request_source.go b/util/request_source.go index eba974773..a1cd0c4cd 100644 --- a/util/request_source.go +++ b/util/request_source.go @@ -63,7 +63,7 @@ func WithInternalSourceType(ctx context.Context, source string) context.Context // IsRequestSourceInternal checks whether the input request source type is internal type. func IsRequestSourceInternal(reqSrc *RequestSource) bool { isInternal := false - if reqSrc != nil && IsInternalRequest(reqSrc.GetRequestSource()) { + if reqSrc != nil && reqSrc.RequestSourceInternal { isInternal = true } return isInternal