Пример #1
0
func FailedAttemptCallback(task *kafka.Task, result kafka.WorkerResult) kafka.FailedDecision {
	kafka.Info("main", "Failed attempt")

	return kafka.CommitOffsetAndContinue
}
Пример #2
0
func FailedCallback(wm *kafka.WorkerManager) kafka.FailedDecision {
	kafka.Info("main", "Failed callback")

	return kafka.DoNotCommitOffsetAndStop
}