fix kafka message persistence completion

This commit is contained in:
richjohnrambo
2026-10-12 09:19:28 +08:00
parent c219ef6455
commit 5d792f9f96
4 changed files with 84 additions and 3 deletions
+5 -1
View File
@@ -41,7 +41,8 @@ type testVerificationStore struct {
}
type testHTTPInfrastructureStore struct {
deadLetters []types.KafkaDeadLetter
deadLetters []types.KafkaDeadLetter
markSucceededErr error
}
type testTenantEntryStore struct {
@@ -110,6 +111,9 @@ func (s *testHTTPInfrastructureStore) BeginKafkaConsume(_ types.TenantID, record
}
func (s *testHTTPInfrastructureStore) MarkKafkaConsumeSucceeded(_ types.TenantID, _, _ string, _ time.Time) error {
if s.markSucceededErr != nil {
return s.markSucceededErr
}
return nil
}