Replies: 1 comment
-
I don't. I don't understand this either |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is a function in https://github.com/apache/rocketmq-clients/blob/master/nodejs/src/consumer/SimpleConsumer.ts:
Is this intentional? It will recurse infinitely, with no escape conditions and no logical processing. Why is it like this? ? ?
Then in the Java version of the client, https://github.com/apache/rocketmq-clients/blob/master/java/client/src/main/java/org/apache/rocketmq/client/java/impl/consumer/SimpleConsumerImpl.java , the following code exists:
If the client is running normally and has the same type, we can simplify this code as follows:
We can try to simplify:
Are these endless recursions intentional? Will there be no problems? Why has to be this way? Especially the nodejs function, I really don’t understand why it is like this?
Beta Was this translation helpful? Give feedback.
All reactions