Compare commits
1 Commits
dependabot
...
v3.8.2
Author | SHA1 | Date | |
---|---|---|---|
39fda18176 |
2
nats.go
2
nats.go
@@ -204,7 +204,7 @@ func (n *natsBroker) Options() broker.Options {
|
||||
|
||||
func (n *natsBroker) BatchPublish(ctx context.Context, p []*broker.Message, opts ...broker.PublishOption) error {
|
||||
var err error
|
||||
msgs := make([]*nats.Msg, len(p))
|
||||
msgs := make([]*nats.Msg, 0, len(p))
|
||||
var wg sync.WaitGroup
|
||||
|
||||
wg.Add(len(p))
|
||||
|
Reference in New Issue
Block a user