Skip to content

Commit

Permalink
enh: add tmq_get_connect
Browse files Browse the repository at this point in the history
  • Loading branch information
huskar-t committed Oct 30, 2023
1 parent 7298f07 commit 94273f7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wrapper/tmq.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,3 +328,8 @@ func TMQCommitOffsetAsync(consumer unsafe.Pointer, topic string, vGroupID int32,
defer C.free(unsafe.Pointer(topicName))
C.tmq_commit_offset_async((*C.tmq_t)(consumer), topicName, (C.int32_t)(vGroupID), (C.int64_t)(offset), (*C.tmq_commit_cb)(C.TMQCommitOffsetCB), h.Pointer())
}

// TMQGetConnect TAOS *tmq_get_connect(tmq_t *tmq)
func TMQGetConnect(consumer unsafe.Pointer) unsafe.Pointer {
return unsafe.Pointer(C.tmq_get_connect((*C.tmq_t)(consumer)))
}

0 comments on commit 94273f7

Please sign in to comment.