Skip to content

Commit 6589758

Browse files
committed
Update RpcError stream handler callback to be invoked upon receiving an error
1 parent a820053 commit 6589758

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

eventstream_rpc/tests/EchoTestRpcModel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ namespace Awstest
10661066
RpcError rpcError)
10671067
{
10681068
bool streamShouldTerminate = false;
1069-
if (operationError == nullptr && rpcError.baseStatus != EVENT_STREAM_RPC_SUCCESS)
1069+
if (rpcError.baseStatus != EVENT_STREAM_RPC_SUCCESS)
10701070
{
10711071
streamShouldTerminate = OnStreamError(rpcError);
10721072
}
@@ -1158,7 +1158,7 @@ namespace Awstest
11581158
RpcError rpcError)
11591159
{
11601160
bool streamShouldTerminate = false;
1161-
if (operationError == nullptr && rpcError.baseStatus != EVENT_STREAM_RPC_SUCCESS)
1161+
if (rpcError.baseStatus != EVENT_STREAM_RPC_SUCCESS)
11621162
{
11631163
streamShouldTerminate = OnStreamError(rpcError);
11641164
}

greengrass_ipc/source/GreengrassCoreIpcModel.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4682,7 +4682,7 @@ namespace Aws
46824682
RpcError rpcError)
46834683
{
46844684
bool streamShouldTerminate = false;
4685-
if (operationError == nullptr && rpcError.baseStatus != EVENT_STREAM_RPC_SUCCESS)
4685+
if (rpcError.baseStatus != EVENT_STREAM_RPC_SUCCESS)
46864686
{
46874687
streamShouldTerminate = OnStreamError(rpcError);
46884688
}
@@ -4851,7 +4851,7 @@ namespace Aws
48514851
RpcError rpcError)
48524852
{
48534853
bool streamShouldTerminate = false;
4854-
if (operationError == nullptr && rpcError.baseStatus != EVENT_STREAM_RPC_SUCCESS)
4854+
if (rpcError.baseStatus != EVENT_STREAM_RPC_SUCCESS)
48554855
{
48564856
streamShouldTerminate = OnStreamError(rpcError);
48574857
}
@@ -5090,7 +5090,7 @@ namespace Aws
50905090
RpcError rpcError)
50915091
{
50925092
bool streamShouldTerminate = false;
5093-
if (operationError == nullptr && rpcError.baseStatus != EVENT_STREAM_RPC_SUCCESS)
5093+
if (rpcError.baseStatus != EVENT_STREAM_RPC_SUCCESS)
50945094
{
50955095
streamShouldTerminate = OnStreamError(rpcError);
50965096
}
@@ -5256,7 +5256,7 @@ namespace Aws
52565256
RpcError rpcError)
52575257
{
52585258
bool streamShouldTerminate = false;
5259-
if (operationError == nullptr && rpcError.baseStatus != EVENT_STREAM_RPC_SUCCESS)
5259+
if (rpcError.baseStatus != EVENT_STREAM_RPC_SUCCESS)
52605260
{
52615261
streamShouldTerminate = OnStreamError(rpcError);
52625262
}
@@ -6330,7 +6330,7 @@ namespace Aws
63306330
RpcError rpcError)
63316331
{
63326332
bool streamShouldTerminate = false;
6333-
if (operationError == nullptr && rpcError.baseStatus != EVENT_STREAM_RPC_SUCCESS)
6333+
if (rpcError.baseStatus != EVENT_STREAM_RPC_SUCCESS)
63346334
{
63356335
streamShouldTerminate = OnStreamError(rpcError);
63366336
}

0 commit comments

Comments
 (0)