Fixed messaging buffering issue

This commit is contained in:
Stephan D
2026-01-15 18:52:14 +01:00
parent c775b3fdd4
commit 4786df60ae
40 changed files with 125 additions and 105 deletions

View File

@@ -33,7 +33,7 @@ func (b *NatsBroker) Subscribe(event model.NotificationEvent) (<-chan me.Envelop
b.logger.Info("Subscribing to subject", zap.String("subject", subject))
// Create a bidirectional channel to send messages to
messageChan := make(chan me.Envelope)
messageChan := make(chan me.Envelope, b.bufferSize)
b.mu.Lock()
defer b.mu.Unlock()