Skip to content

Commit

Permalink
fixed kafka message queue non-existent
Browse files Browse the repository at this point in the history
  • Loading branch information
0987363 committed Dec 19, 2023
1 parent d073d0f commit f121542
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/rpc_router.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,12 @@ func (router *router) ProcessMessage(ctx context.Context, msg Message) (err erro

// we may have multiple subscribers for the topic
for _, sub := range subs {
fmt.Println(msg.Header())
fmt.Println(sub.opts)

// we may have multiple handlers per subscriber
for i := 0; i < len(sub.handlers); i++ {
if sub.opts.Queue != msg.Header()["Queue"] {
if msg.Header()["Queue"] != "" && sub.opts.Queue != msg.Header()["Queue"] {
continue
}

Expand Down

0 comments on commit f121542

Please sign in to comment.