Skip to content

Commit

Permalink
fix: declare assignor variable for examples & clean up log format
Browse files Browse the repository at this point in the history
Signed-off-by: kumakichi <[email protected]>
  • Loading branch information
kumakichi committed May 23, 2024
1 parent 3fad210 commit 458b9f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/exactly_once/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var (
destinationTopic = ""
oldest = true
verbose = false
assignor = ""
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion transaction_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ func (t *transactionManager) publishOffsetsToTxn(offsets topicPartitionOffsets,
resultOffsets = failedTxn

if len(resultOffsets) == 0 {
DebugLogger.Printf("txnmgr/txn-offset-commit [%s] successful txn-offset-commit with group %s %+v\n",
DebugLogger.Printf("txnmgr/txn-offset-commit [%s] successful txn-offset-commit with group %s\n",
t.transactionalID, groupId)
return resultOffsets, false, nil
}
Expand Down

0 comments on commit 458b9f7

Please sign in to comment.