You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2019/11/04 06:30:11 UTC
[GitHub] [pulsar-client-go] wolfstudy commented on a change in pull request
#82: Added a message id tracker for acking messages that are batched.
wolfstudy commented on a change in pull request #82: Added a message id tracker for acking messages that are batched.
URL: https://github.com/apache/pulsar-client-go/pull/82#discussion_r341913926
##########
File path: pulsar/impl_message.go
##########
@@ -18,30 +18,31 @@
package pulsar
import (
+ "math/big"
+ "strings"
+ "sync"
"time"
- "github.com/apache/pulsar-client-go/pkg/pb"
"github.com/golang/protobuf/proto"
-)
-func earliestMessageID() MessageID {
- return newMessageID(-1, -1, -1, -1)
-}
+ "github.com/apache/pulsar-client-go/pkg/pb"
+)
type messageID struct {
ledgerID int64
entryID int64
batchIdx int
partitionIdx int
+
+ tracker *ackTracker
Review comment:
Agree with @sijie
Maybe we can do this:
```
type MsgTracker struct {
msgID *messageID
tracker *ackTracker
}
```
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services