Use any instead of interface{}
Signed-off-by: chenyahui <cyhone@qq.com>
This commit is contained in:
@ -138,7 +138,7 @@ func isClientCtxErr(ctxErr error, err error) bool {
|
||||
}
|
||||
|
||||
// in v3.4, learner is allowed to serve serializable read and endpoint status
|
||||
func isRPCSupportedForLearner(req interface{}) bool {
|
||||
func isRPCSupportedForLearner(req any) bool {
|
||||
switch r := req.(type) {
|
||||
case *pb.StatusRequest:
|
||||
return true
|
||||
|
Reference in New Issue
Block a user