1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-11 10:18:28 +09:00

Further event updates

This commit is contained in:
mcrakhman 2021-11-14 21:53:29 +01:00
parent edf6b2c89c
commit f4fe6fb4ae
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B
5 changed files with 45 additions and 36 deletions

View file

@ -41,9 +41,10 @@ func (t *threadsMetrics) AcceptRecord(tp metrics.RecordType, isNAT bool) {
})
}
func (t *threadsMetrics) CreateRecord(beforeMs int, busMs int, pushMs int) {
func (t *threadsMetrics) CreateRecord(prepareMs int64, newRecordMs int64, busMs int64, pushMs int64) {
t.client.RecordEvent(RecordCreateEvent{
NewRecordMs: beforeMs,
PrepareMs: prepareMs,
NewRecordMs: newRecordMs,
LocalEventBusMs: busMs,
PushMs: pushMs,
})