You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
example:
match self.open_grpc_stream(
request.get_redis_addr(),
"package.name",
"MetricStream",
vec![],
) {
Err(e) => {
error!("open grpc err {:?}",e);
false
}
Ok(status) => {
// grpc server is health
// sudden the grpc server is crash or other thing
self.send_grpc_stream_message(status, Some(&msg), true); // here will panic ,because grpc server is crash
true
}
}
The text was updated successfully, but these errors were encountered:
use grpc stream code potential risks panic
example:
match self.open_grpc_stream(
request.get_redis_addr(),
"package.name",
"MetricStream",
vec![],
) {
Err(e) => {
error!("open grpc err {:?}",e);
false
}
Ok(status) => {
// grpc server is health
// sudden the grpc server is crash or other thing
self.send_grpc_stream_message(status, Some(&msg), true); // here will panic ,because grpc server is crash
true
}
}
The text was updated successfully, but these errors were encountered: