1
0
Fork 0
Commit Graph

25 Commits

Author SHA1 Message Date
Michał Rudowicz f2e5684477 Probably last async stuff removed that's not satel 2025-01-09 17:36:40 +01:00
Michał Rudowicz f3fdfd4bbc Minor cleanup 2025-01-08 22:48:10 +01:00
Michał Rudowicz b0d87a2d64 Synchronous filter for type conversion in stream 2025-01-08 21:16:18 +01:00
Michał Rudowicz 1e899a5351 Actual usage of synchronous workers 2025-01-08 20:44:32 +01:00
Michał Rudowicz 499fa82d96 Collect improvements 2025-01-07 00:10:21 +01:00
Michał Rudowicz dd02763e84 Synchronous throttling 2025-01-07 00:09:41 +01:00
Michał Rudowicz 76bd8e42d4 SyncFilter is now generic 2025-01-06 23:29:54 +01:00
Michał Rudowicz f7bb03721c SyncFilterImpl 2025-01-06 20:53:08 +01:00
Michał Rudowicz 88c86a9581 Initial work on synchronous filters 2025-01-06 14:55:08 +01:00
Michał Rudowicz 64f4930b4e Avoid possible race condition with waitgroups
Looks like calling wg.Add(1) from a goroutine can cause a race condition
with wg.Wait() - can be easily avoided by calling Add() before the
subroutine is created.
2025-01-02 13:40:25 +01:00
Michał Rudowicz 4f91940047 Read config from YAML file 2024-03-24 18:39:12 +01:00
Michał Rudowicz 7815009318 (hopefully) fix not all chatIds being used 2024-03-10 21:15:51 +01:00
Michał Rudowicz 0c873ff77d Fix memory leak* when new message is received
*) technically the memory could still be referenced, so some would argue
   that it was not a memory leak, but when I see a program balooning up
   without a reason for it so OOM Killer deals with it I call it a
   memory leak, sue me
2024-03-10 14:08:39 +01:00
Michał Rudowicz 57c66c4690 Collect message contents during throttling
References https://todo.sr.ht/~michalr/hswro-alarm-bot/9
2024-03-10 11:25:36 +01:00
Michał Rudowicz 3e3eb3bc5d Message throttling 2024-03-10 10:52:27 +01:00
Michał Rudowicz 6b69fed5b8 Synchronize filtering goroutines 2024-03-10 10:12:04 +01:00
Michał Rudowicz 8237eda13d Join filters etc. to limit numbers of goroutines that aren't needed
References: https://todo.sr.ht/~michalr/hswro-alarm-bot/7
2024-03-05 23:01:38 +01:00
Michał Rudowicz f0a16ab443 Bump go-satel; remove throttling of messages 2024-03-05 22:30:48 +01:00
Michał Rudowicz 2e513fb4da Retrieve partition names from Satel 2024-03-04 22:01:35 +01:00
Michał Rudowicz 6d0c67f92a Separate DataStore object to allow for querying from separate place 2024-02-28 21:38:42 +01:00
Michał Rudowicz 557f5481fd Possibility to filter by indexes 2024-02-18 19:00:49 +01:00
Michał Rudowicz ab5bd412f2 Possibility to filter by ChangeType 2024-02-18 18:44:08 +01:00
Michał Rudowicz eca858c01e FilterByLastSeen() persistence 2024-02-15 20:06:06 +01:00
Michał Rudowicz 919ddf569e FilterByLastSeen(); TODO: persistence 2024-02-14 21:34:16 +01:00
Michał Rudowicz 0d263179b4 FilterByType() 2024-02-13 23:20:15 +01:00