returnErr(BoxError::new(ErrorCode::WrongPluginVersion,format!("RPC request to an endpoint `{plugin}.{service}{path}` with incompatible version (requestor: {v_requestor}, handler: {v_handler})",
letmessage=format!("RPC endpoint `{plugin}.{service}{path}` is already registered with a different version (old: {old_version}, new: {new_version})",plugin=key.plugin,service=key.service,path=key.path,old_version=old_handler.version(),new_version=handler.version());
ifv_old!=v_new{
letmessage=format!("RPC endpoint `{plugin}.{service}{path}` is already registered with a different version (old: {v_old}, new: {v_new})",plugin=key.plugin,service=key.service,path=key.path);
letmessage=format!("RPC endpoint `{plugin}.{service}:v{version}{path}` is already registered with a different handler",plugin=key.plugin,service=key.service,version=old_handler.version(),path=key.path);
letmessage=format!("RPC endpoint `{}` is already registered with a different handler",old_handler.identifier);