hhuang1231 commented on issue #4587:
URL: https://github.com/apache/eventmesh/issues/4587#issuecomment-1833067312

   I also want to know why 
`org.apache.eventmesh.client.grpc.consumer.EventMeshGrpcConsumer#resubscribe` 
is limited to using subStreamHandler for sending.
   
我还想知道`org.apache.eventmesh.client.grpc.consumer.EventMeshGrpcConsumer#resubscribe`为什么限定使用subStreamHandler进行发送。
   
   
   
![image](https://github.com/apache/eventmesh/assets/122422744/009d6118-b8ca-4d18-a14d-234a69f3797a)
   As far as I know, there are only two ways to create a subStreamHandler:
   1. Call `public void subscribe(final List<SubscriptionItem> 
subscriptionItems)` to automatically create
   2. Call the setter
   For the startup method of grpc springboot in examples, subStreamHandler is 
not created, so NPE will be thrown when resubscribe is called.
   
   我目前所知创建subStreamHandler应该只有两种方式:
   1. 调用`public void subscribe(final List<SubscriptionItem> 
subscriptionItems)`自动创建
   2. 调用setter
   
   而对于examples中grpc 
springboot的启动方式来说,并没有创建subStreamHandler,因此当调用resubscribe时将会抛出NPE


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to