Review comments

This commit is contained in:
David Robertson 2023-07-28 18:38:05 +01:00
parent 58788287d4
commit 9248d4e512
No known key found for this signature in database
GPG Key ID: 903ECE108A39DEDD
2 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,6 @@ func (t *TxnIDWaiter) Ingest(up caches.Update) {
// TODO: bound the queue size?
t.queues[ed.RoomID] = append(queue, eventUpdate)
// TODO: if t gets gced, will this function still run? If so, will things explode?
time.AfterFunc(t.maxDelay, func() { t.PublishUpToNID(ed.RoomID, ed.NID) })
}

1
v3.go
View File

@ -39,6 +39,7 @@ type Opts struct {
TestingSynchronousPubsub bool
// MaxTransactionIDDelay is the longest amount of time that we will wait for
// confirmation of an event's transaction_id before sending it to its sender.
// Set to 0 to disable this delay mechanism entirely.
MaxTransactionIDDelay time.Duration
DBMaxConns int