Exemplo n.º 1
0
func FailedAttemptCallback(task *kafka.Task, result kafka.WorkerResult) kafka.FailedDecision {
	kafka.Info("main", "Failed attempt")

	return kafka.CommitOffsetAndContinue
}
Exemplo n.º 2
0
func FailedCallback(wm *kafka.WorkerManager) kafka.FailedDecision {
	kafka.Info("main", "Failed callback")

	return kafka.DoNotCommitOffsetAndStop
}