Commit Graph

36 Commits

Author SHA1 Message Date
levlam
19cde80fd1 Reduce struct RawEvent size on some compilers. 2023-01-05 23:33:15 +03:00
levlam
c4afb9283c Return all deleted events fron TQueue::clear. 2023-01-05 23:17:06 +03:00
levlam
cf1984844b Update copyright year. 2023-01-01 00:28:08 +03:00
levlam
5945cc9b70 Add TQueue::clear. 2022-11-08 17:04:45 +03:00
levlam
ec86b34d55 Don't allow TQueue::run_gc to run for more than 50 milliseconds. 2022-10-13 16:04:24 +03:00
levlam
32bac7bd24 Move Promise to tdutils. 2022-06-27 13:30:18 +03:00
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
levlam
9f44816a62 Minor improvements. 2021-10-21 12:51:16 +03:00
levlam
44a186c7c1 Minor improvements. 2021-10-18 19:26:14 +03:00
levlam
40c5d47717 Make inherited classes final if possible. 2021-07-04 05:58:54 +03:00
levlam
edfa5d1d98 Use final instead of override. 2021-07-03 23:51:36 +03:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
cb3f390a92 Unify "log event" spelling.
GitOrigin-RevId: a1a491981596c56dbf7541d80ead1ea9f5d5bd04
2020-09-22 02:15:09 +03:00
levlam
dfd01bf87b Fix from_id check in TQueue.
GitOrigin-RevId: ad52ed5183780b806dcd994bb1a33e67ba508635
2020-08-26 21:36:29 +03:00
Arseny Smirnov
80d98def74 TQueue: run_gc returns count of deleted events
GitOrigin-RevId: 7cddd57c1c2842eade83aa253209462e33629dc9
2020-08-07 19:36:23 +03:00
levlam
2097934da5 Optimize TQueue::run_gc, so it can be run arbitrary often.
GitOrigin-RevId: f7fc488cf3682683c0164c557992dbbc4eed9d4d
2020-08-07 06:06:29 +03:00
levlam
5109f43435 Use unix_time in TQueue.
GitOrigin-RevId: d49c0871c7cb1a4315e38a66c198f56cb2b89428
2020-08-06 04:02:54 +03:00
levlam
85ba9e5654 Fix TQueue binlog replaying.
GitOrigin-RevId: 172d70847206253de981d38fed329276b2f778e0
2020-07-24 06:57:48 +03:00
levlam
70534a8aca Add TQueue run_gc statistics.
GitOrigin-RevId: 371d38aa5c59d927b0f1e601f08ac7c7bbbdb137
2020-07-24 02:42:54 +03:00
levlam
060c01ace3 Minor improvements.
GitOrigin-RevId: b4e5073248377d84cb8acdf4a032970ec5cf5df9
2020-07-14 20:54:38 +03:00
Arseny Smirnov
d701e17cc6 close(Promise<>) interface for TQueue and BinlogKeyValue
GitOrigin-RevId: d2c524407888b99c9e6207f74828eb2da29a7720
2020-07-14 19:10:26 +03:00
levlam
a9e95b7f4b Add TQueue::get_size.
GitOrigin-RevId: 20b842bfb145a890e149f80bff56f0fa80785337
2020-06-24 15:11:39 +03:00
levlam
00c30aa9dc TQueue fixes.
GitOrigin-RevId: 87dd51ab556869a6066e9837cf8da34530cfbc4b
2020-06-12 03:02:20 +03:00
levlam
fc8d92b464 Remove tqueue test from namespace td.
GitOrigin-RevId: 3cedf8f7504df4bd1f33e1ab40feb18fbf03ace7
2020-06-12 00:46:47 +03:00
levlam
bee9b67e3c Improve TQueue.
GitOrigin-RevId: 3146441d9035be886a616d8de504024df1602116
2020-06-11 23:54:56 +03:00
levlam
42e3aefc02 TQueue improvements.
GitOrigin-RevId: 753aba147aed58ccba167a83dd798987ce6da177
2020-06-11 18:12:16 +03:00
levlam
2a6eebec24 Fix logevent_id type.
GitOrigin-RevId: a609c2f25c1898defe031ce90c72957a031e3f65
2020-06-11 16:52:39 +03:00
levlam
22c9927314 Minor tqueue fixes.
GitOrigin-RevId: 827a336498dd57364aa8a2ac59d97ecacb05f5de
2020-06-11 16:43:26 +03:00
Arseny Smirnov
39e58f3eb9 TQueue: extra
GitOrigin-RevId: 7f746000e546b422034c0170e068d599317764c9
2019-09-06 18:55:19 +03:00
Arseny Smirnov
7a48b9bfc0 TQueue: interface for webhooks
GitOrigin-RevId: 521f25f183d76bcbb9143270660dd48b3bf8fc83
2019-08-27 18:06:00 +03:00
Arseny Smirnov
de5cc3e214 TQueue: big rewrite
GitOrigin-RevId: dc541f0fbdbc2ecdbba70b52b494756f763e78bb
2019-08-09 20:29:17 +03:00
Arseny Smirnov
5685591ff4 TQueue: store timeout in system time, drop old event when possible
GitOrigin-RevId: c1aa277d76e85e411828577ce7d6efd2d374058e
2019-08-07 19:14:36 +03:00
Arseny Smirnov
3976bbb4c8 TQueue: now more than MAX_QUEUE_EVENTS events in each queue
GitOrigin-RevId: a8553f02f631fd34ef1451044c3ad7e27ee7d3dd
2019-08-07 18:36:37 +03:00
Arseny Smirnov
8226c9ab49 TQueue: do not drop tail_id whithout restart
GitOrigin-RevId: 54df1acc7b36303e128cfe1f6ac3e7ed4837eacd
2019-08-07 18:29:47 +03:00
Arseny Smirnov
791d4f3172 TQueue: some fixes.
GitOrigin-RevId: f0521fd9c323e05ffaf4877b92ad42a17ee71dcd
2019-08-07 18:13:10 +03:00
Arseny Smirnov
a8c74f9432 TQueue: export from tqueue, Tqueue.{cpp,h}
GitOrigin-RevId: 045ccbd0694d4906788a38bb30f16f0f9b0ef97d
2019-08-07 14:01:22 +03:00