mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Review comments
This commit is contained in:
parent
58788287d4
commit
9248d4e512
@ -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
1
v3.go
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user