mirror of
https://gitee.com/johng/gf.git
synced 2024-12-05 21:59:05 +08:00
14 lines
490 B
Go
14 lines
490 B
Go
// Copyright 2018 gf Author(https://gitee.com/johng/gf). All Rights Reserved.
|
|
//
|
|
// This Source Code Form is subject to the terms of the MIT License.
|
|
// If a copy of the MIT was not distributed with this file,
|
|
// You can obtain one at https://gitee.com/johng/gf.
|
|
|
|
package gkafka
|
|
|
|
// 自动标记已读取
|
|
func (msg *Message) MarkOffset() {
|
|
if msg.consumerMsg != nil && msg.client != nil && msg.client.consumer != nil {
|
|
msg.client.consumer.MarkOffset(msg.consumerMsg, "")
|
|
}
|
|
} |