aboutsummaryrefslogtreecommitdiff
path: root/syncapi/consumers/eduserver_receipts.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-12-10 18:57:10 +0000
committerGitHub <noreply@github.com>2020-12-10 18:57:10 +0000
commit9c03b0a4fa38971dfe83bd135aefb3c482a18380 (patch)
treeba8e55b75c056adac1fc7c42fb6febb2b8565d36 /syncapi/consumers/eduserver_receipts.go
parentbad81c028f090af0e1005076829db67d1a749a14 (diff)
Refactor sync tokens (#1628)
* Refactor sync tokens * Comment out broken notifier test * Update types, sytest-whitelist * More robust token checking * Remove New functions for streaming tokens * Export Logs in StreamingToken * Fix tests
Diffstat (limited to 'syncapi/consumers/eduserver_receipts.go')
-rw-r--r--syncapi/consumers/eduserver_receipts.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/syncapi/consumers/eduserver_receipts.go b/syncapi/consumers/eduserver_receipts.go
index 3361e134..5c286cf0 100644
--- a/syncapi/consumers/eduserver_receipts.go
+++ b/syncapi/consumers/eduserver_receipts.go
@@ -88,7 +88,7 @@ func (s *OutputReceiptEventConsumer) onMessage(msg *sarama.ConsumerMessage) erro
return err
}
// update stream position
- s.notifier.OnNewReceipt(types.NewStreamToken(0, streamPos, nil))
+ s.notifier.OnNewReceipt(types.StreamingToken{ReceiptPosition: streamPos})
return nil
}