Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pkg/mls/api/v1/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,14 @@ type Service struct {
cutoverChecker *migration.CutoverChecker

// Subscribe (XIP-83) tunables; overridable in tests. Default to the package consts
// (subscribePingInterval / subscribePongDeadline / maxPendingBytes / maxFrameBytes).
// (subscribePingInterval / subscribePongDeadline / maxPendingBytes / maxFrameBytes /
// catchUpScanPageLimit / maxMutateAdds).
pingInterval time.Duration
pongDeadline time.Duration
maxPendingBytes int
maxFrameBytes int
scanPageLimit int32
maxMutateAdds int
}

func NewService(
Expand All @@ -83,6 +86,8 @@ func NewService(
pongDeadline: subscribePongDeadline,
maxPendingBytes: maxPendingBytes,
maxFrameBytes: maxFrameBytes,
scanPageLimit: catchUpScanPageLimit,
maxMutateAdds: maxMutateAdds,
}
s.ctx, s.ctxCancel = context.WithCancel(context.Background())
if s.dbWorker, err = newDBWorker(s.ctx, log, s.readOnlyStore.Queries(), subDispatcher, DEFAULT_POLL_INTERVAL); err != nil {
Expand Down
586 changes: 308 additions & 278 deletions pkg/mls/api/v1/subscribe.go
Comment thread
tylerhawkes marked this conversation as resolved.

Large diffs are not rendered by default.

Loading
Loading