break;
}
// Set the appropriate flags on the RPC object
// TODO: Handle bad sequence number by ignoring/logging?
RpcResponse response = builder.build();
ProtoRpcController rpc = null;
synchronized (this) {
rpc = pendingRpcs.remove(response.getSequenceNumber());
assert response.getStatus() == Protocol.Status.OK;
assert rpc != null :
"No ProtoRpcController for Sequence# " + response.getSequenceNumber();
}
rpc.finishRpcSuccess(response.getResponse());
}
}