A reader asks again when its consumer was made after its first view, says every silent drop, and carries what it heard in its status (issue 1966)
A consumer is made from now (ADR 0443): an event said before it was made is never delivered to it and no later event shows the loss. The event hub tells a part when the bus made its consumer, and a follower asked before that asks again. Events passed over, at or below the held revision, or of a state not followed are now said in the log. The status carries the highest revision heard and why the picture is behind it. Claude-Session: https://claude.ai/code/session_01NcbgfFSnn24M3GcqttoU7i
This commit is contained in:
@@ -545,6 +545,11 @@ func (r *ProcessReader) Start(ctx context.Context, js jetstream.JetStream, cred
|
||||
if hub == nil {
|
||||
hub, pattern, own = process.NewEventHub(r.logf), ">", true
|
||||
}
|
||||
hub.OnBound(func(created time.Time) {
|
||||
for _, f := range r.Followers() {
|
||||
f.ConsumerMade(ctx, created)
|
||||
}
|
||||
})
|
||||
err := hub.Handle(pattern, r.Hear(ctx))
|
||||
if err == nil && own {
|
||||
err = hub.Start(ctx, js, cred)
|
||||
|
||||
Reference in New Issue
Block a user