mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 21:09:06 +08:00
8b62790017
Signed-off-by: Xiangyu Wang <xiangyu.wang@zilliz.com>
30 lines
562 B
Go
30 lines
562 B
Go
package mqclient
|
|
|
|
import (
|
|
"github.com/zilliztech/milvus-distributed/internal/util/rocksmq/client/rocksmq"
|
|
)
|
|
|
|
type rmqConsumer struct {
|
|
c rocksmq.Consumer
|
|
msgChannel chan ConsumerMessage
|
|
}
|
|
|
|
func (rc *rmqConsumer) Subscription() string {
|
|
return rc.c.Subscription()
|
|
}
|
|
|
|
func (rc *rmqConsumer) Chan() <-chan ConsumerMessage {
|
|
return rc.msgChannel
|
|
}
|
|
|
|
func (rc *rmqConsumer) Seek(id MessageID) error {
|
|
msgID := id.(*rmqID).messageID
|
|
return rc.c.Seek(msgID)
|
|
}
|
|
|
|
func (rc *rmqConsumer) Ack(message ConsumerMessage) {
|
|
}
|
|
|
|
func (rc *rmqConsumer) Close() {
|
|
}
|