mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 23:48:27 +00:00
Free up pdus slice so only references remaining are in channel
This commit is contained in:
parent
8558075e8c
commit
b96f6ca3f7
1 changed files with 1 additions and 0 deletions
|
@ -260,6 +260,7 @@ func (t *txnReq) processTransaction(ctx context.Context) (*gomatrixserverlib.Res
|
||||||
for _, e := range pdus {
|
for _, e := range pdus {
|
||||||
perRoom[e.RoomID()] <- e.Unwrap()
|
perRoom[e.RoomID()] <- e.Unwrap()
|
||||||
}
|
}
|
||||||
|
pdus = nil // nolint:ineffassign
|
||||||
|
|
||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
wg.Add(len(perRoom))
|
wg.Add(len(perRoom))
|
||||||
|
|
Loading…
Reference in a new issue