-
Notifications
You must be signed in to change notification settings - Fork 242
Set *stan.Msg metadata on receiver ctx #657
Copy link
Copy link
Closed
Labels
Milestone
Description
After discussion on slack, it it desirable to set NATS Streaming message metadata on the context.Context which can be passed into receivers.
This can be implemented by implementing the binding.MessageContext interface at the protocol layer.
At the moment, the context passed to receivers is the same as passed to client.StartReceiver(ctx), so this functionality should prevent breaking changes for existing users where they expect ctx to have a certain state.
Reactions are currently unavailable