S6 event-hub-by-key: Handle keeps its earlier form; HandleByKey holds by key

Builds: design 47 H2 H-A-683 (1), H-A-737 (1)
This commit is contained in:
2026-11-25 17:25:17 +01:00
parent eea766ae3c
commit 1d7c996ac9
4 changed files with 30 additions and 21 deletions
+2 -2
View File
@@ -385,8 +385,8 @@ func subAHandlingPastEventOverrunRaisesItsFindingAndTheNextStartClearsIt(t *test
}
hub := process.NewEventHub(t.Logf)
release := make(chan struct{})
if err := hub.Handle("mesh.mod.p.event.slow", func(m jetstream.Msg) { <-release; _ = m.Ack() },
func(string, []byte) string { return "the-slow-key" }); err != nil {
if err := hub.HandleByKey("mesh.mod.p.event.slow", func(string, []byte) string { return "the-slow-key" },
func(m jetstream.Msg) { <-release; _ = m.Ack() }); err != nil {
t.Fatal(err)
}
found := &clearedFindings{put: make(chan string, 8), cleared: make(chan string, 8)}