huajason opened a new issue #459: [native] dyld: malformed mach-o image: 
segment __DWARF has vmsize < filesize
URL: https://github.com/apache/rocketmq-client-go/issues/459
 
 
   go run err
   err info : dyld: malformed mach-o image: segment __DWARF has vmsize < 
filesize
   
   code:
   import (
        "context"
        "fmt"
        "os"
        "time"
   
        "github.com/apache/rocketmq-client-go/v2"
        "github.com/apache/rocketmq-client-go/v2/consumer"
        "github.com/apache/rocketmq-client-go/v2/primitive"
   )
   
   func Main1() {
        c, _ := rocketmq.NewPushConsumer(
        consumer.WithGroupName("testGroup"),
        consumer.WithNameServer([]string{"192.168.9.220:9876"}),
        )
        err := c.Subscribe("test-ma", consumer.MessageSelector{}, func(ctx 
context.Context,
                msgs ...*primitive.MessageExt) (consumer.ConsumeResult, error) {
                        for i := range msgs {
                        fmt.Printf("subscribe callback: %v \n", msgs[i])
                        }
   
                return consumer.ConsumeSuccess, nil
                },
        )
   
        if err != nil {
                fmt.Println(err.Error())
        }
   
        // Note: start after subscribe
        err = c.Start()
        if err != nil {
                fmt.Println(err.Error())
                os.Exit(-1)
        }
        time.Sleep(time.Hour)
        err = c.Shutdown()
   
        if err != nil {
                fmt.Printf("shutdown Consumer error: %s", err.Error())
        }
   }

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to