Commit Graph

292 Commits

Author SHA1 Message Date
kiwiidb
6d7e871f33 fix test + refactor 2023-04-01 14:13:20 +02:00
Lucas Rouckhout
be66edfbbe Initial working version with a lot of closures 2023-03-05 10:16:45 +01:00
Lucas Rouckhout
dbe5ce83a3 WIP SACE 2023-03-04 17:52:03 +01:00
kiwiidb
112435d5e1 Merge pull request #324 from getAlby/task-logging-checks
feat: add checks and remove sentry logging
2023-02-27 08:45:37 +01:00
Adithya Vardhan
7c7a0f82ff chore: add error for invalid destination 2023-02-25 20:41:58 +05:30
kiwiidb
b3f443bf6a fix merge conflicts 2023-02-22 17:45:34 +01:00
kiwiidb
873cbfff4c datadog config 2023-02-22 17:41:35 +01:00
kiwiidb
b40d13fbc9 Merge pull request #316 from getAlby/catch-add-index-error
Invoice subscription: safety improvements
2023-02-22 17:35:19 +01:00
Adithya Vardhan
c7d2f3d559 feat: add network check 2023-02-22 15:32:01 +05:30
Adithya Vardhan
971c24ec99 feat: add invoice expiry check 2023-02-22 14:35:40 +05:30
kiwiidb
ea2c040fb4 resolve merge conflicts 2023-02-20 17:36:37 +01:00
kiwiidb
2d5c280315 Merge pull request #300 from getAlby/feature/rabbitmq-publish
Use rabbitmq as an alternative to publish invoice events
2023-02-20 15:58:40 +01:00
kiwiidb
10628df6eb capture errors 2023-02-20 14:42:49 +01:00
kiwiidb
97fc22aa7d capture errors 2023-02-20 14:36:17 +01:00
kiwiidb
945d936146 use bg ctx / capture error 2023-02-20 14:32:36 +01:00
kiwiidb
0b8828c93b boy scouting 2023-02-20 14:26:45 +01:00
Lucas Rouckhout
191e44ee02 singular invoice 2023-02-18 17:00:07 +01:00
Lucas Rouckhout
27e67b7d56 Create the channels during the Subscribe function call and make them buffered 2023-02-18 16:46:56 +01:00
Lucas Rouckhout
5d7c2b9a1c Remove default buf size from after revert commit 2023-02-18 16:41:37 +01:00
Lucas Rouckhout
7048d04622 Revert "PubSUb now uses buffered channels"
This reverts commit 118297d79f.
2023-02-18 16:40:07 +01:00
Lucas Rouckhout
6f63758ab1 prefix instead of suffix routing key 2023-02-18 16:39:46 +01:00
Lucas Rouckhout
90929134cb Defer close the rabbitmq connection 2023-02-18 15:49:11 +01:00
Lucas Rouckhout
5758b39c0d Remove rabbit conn from service object 2023-02-18 15:47:05 +01:00
Lucas Rouckhout
b5e925d5ca Increase default buffer size for invoice channels in pubsub 2023-02-18 15:30:33 +01:00
Lucas Rouckhout
277c44a42d Changed some comments 2023-02-18 15:27:38 +01:00
Lucas Rouckhout
118297d79f PubSUb now uses buffered channels 2023-02-18 15:25:46 +01:00
Lucas Rouckhout
4791251e77 Make channels buffered 2023-02-18 14:33:43 +01:00
kiwiidb
28a4a4d81a Merge pull request #317 from getAlby/fix/invoice-deletion
Fix/invoice deletion
2023-02-18 11:39:39 +01:00
kiwiidb
e8d3f7d2c9 lowercase errors 2023-02-18 11:34:11 +01:00
kiwiidb
dc1f121aa0 don't log already processed keysend error 2023-02-18 11:23:40 +01:00
Lucas Rouckhout
3e611a45ab Merge branch 'main' into feature/rabbitmq-publish 2023-02-18 09:20:55 +01:00
kiwiidb
e36d46ff9c add an extra sentry notification 2023-02-17 17:22:13 +01:00
kiwiidb
973f80a993 forgot to re-add subscription 2023-02-17 17:15:06 +01:00
kiwiidb
c293825ab9 return error in invoice subscription 2023-02-17 17:03:44 +01:00
kiwiidb
06f3f1750d relax inequality in balance check 2023-02-17 16:28:46 +01:00
kiwiidb
c74f39f94d refactor invoice amount checks 2023-02-17 14:59:10 +01:00
kiwiidb
2c73684b37 wip: fail on db error 2023-02-17 11:12:46 +01:00
kiwiidb
bf315cee02 add db timeout defautl of 60 seconds 2023-02-17 08:42:32 +01:00
kiwiidb
6417298677 add safety buffer 2023-02-17 08:32:17 +01:00
Michael Bumann
6739e8c9c7 Notify sentry if the select for the last add index fails 2023-02-17 04:40:25 +01:00
kiwiidb
9af3e318c6 feature: add db pool config 2023-02-16 14:53:56 +01:00
kiwiidb
4dee1da2ae feature: add db pool config 2023-02-16 14:46:39 +01:00
Lucas Rouckhout
214b3c9308 Boy Scout Rule: Removing use of deprecated ioutil package 2023-02-06 18:30:45 +01:00
Lucas Rouckhout
9cb745132b Adding some comments and inlining the init of bufPool 2023-02-06 18:29:41 +01:00
Lucas Rouckhout
2036b63bc0 Use sync.Pool as a pool of bytes.Buffer so as to lower mem allocations in publishInvoice function 2023-02-04 16:30:49 +01:00
kiwiidb
3ebcd9cd1d clean up duplicated code 2023-02-04 14:47:55 +01:00
kiwiidb
32feb2c824 clean up duplicated code 2023-02-04 14:44:55 +01:00
Lucas Rouckhout
5280e7308a Initial working poc for publishing to rabbitmq 2023-02-04 13:03:41 +01:00
kiwiidb
b7d4319428 lndhub: graceful shutdown 2023-01-17 11:12:04 +01:00
kiwiidb
9144117c32 add graceful shutdown context 2023-01-16 17:59:41 +01:00