You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by GitBox <gi...@apache.org> on 2023/01/16 08:05:25 UTC

[GitHub] [rocketmq-clients] chowyu12 opened a new issue, #344: golang 订阅 panic

chowyu12 opened a new issue, #344:
URL: https://github.com/apache/rocketmq-clients/issues/344

   `	simpleConsumer, err := golang.NewSimpleConsumer(&golang.Config{
   		Endpoint:      Endpoint,
   		ConsumerGroup: GroupName,
   		Credentials: &credentials.SessionCredentials{
   			AccessKey:    AccessKey,
   			AccessSecret: SecretKey,
   		},
   	},
   		golang.WithAwaitDuration(awaitDuration),
   	)
   	if err != nil {
   		log.Fatal(err)
   	}
   	// start simpleConsumer
   	err = simpleConsumer.Start()
   	if err != nil {
   		log.Fatal(err)
   	}
   
   	if err := simpleConsumer.Subscribe(Topic, golang.SUB_ALL); err != nil {
   		log.Fatal(err)
   	}`
   
   ![image](https://user-images.githubusercontent.com/81024796/212627502-e6e69ab4-3e60-4c15-8b7b-bf25bfede905.png)
   


-- 
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: commits-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq-clients] aaron-ai closed issue #344: golang Subscribe 订阅 panic

Posted by GitBox <gi...@apache.org>.
aaron-ai closed issue #344: golang Subscribe 订阅 panic
URL: https://github.com/apache/rocketmq-clients/issues/344


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org