aboutsummaryrefslogtreecommitdiff
path: root/syncapi/consumers/receipts.go
diff options
context:
space:
mode:
Diffstat (limited to 'syncapi/consumers/receipts.go')
-rw-r--r--syncapi/consumers/receipts.go30
1 files changed, 14 insertions, 16 deletions
diff --git a/syncapi/consumers/receipts.go b/syncapi/consumers/receipts.go
index 8aaa6573..e39d43f9 100644
--- a/syncapi/consumers/receipts.go
+++ b/syncapi/consumers/receipts.go
@@ -34,14 +34,13 @@ import (
// OutputReceiptEventConsumer consumes events that originated in the EDU server.
type OutputReceiptEventConsumer struct {
- ctx context.Context
- jetstream nats.JetStreamContext
- durable string
- topic string
- db storage.Database
- stream streams.StreamProvider
- notifier *notifier.Notifier
- serverName gomatrixserverlib.ServerName
+ ctx context.Context
+ jetstream nats.JetStreamContext
+ durable string
+ topic string
+ db storage.Database
+ stream streams.StreamProvider
+ notifier *notifier.Notifier
}
// NewOutputReceiptEventConsumer creates a new OutputReceiptEventConsumer.
@@ -55,14 +54,13 @@ func NewOutputReceiptEventConsumer(
stream streams.StreamProvider,
) *OutputReceiptEventConsumer {
return &OutputReceiptEventConsumer{
- ctx: process.Context(),
- jetstream: js,
- topic: cfg.Matrix.JetStream.Prefixed(jetstream.OutputReceiptEvent),
- durable: cfg.Matrix.JetStream.Durable("SyncAPIReceiptConsumer"),
- db: store,
- notifier: notifier,
- stream: stream,
- serverName: cfg.Matrix.ServerName,
+ ctx: process.Context(),
+ jetstream: js,
+ topic: cfg.Matrix.JetStream.Prefixed(jetstream.OutputReceiptEvent),
+ durable: cfg.Matrix.JetStream.Durable("SyncAPIReceiptConsumer"),
+ db: store,
+ notifier: notifier,
+ stream: stream,
}
}