Commit Graph

275 Commits

Author SHA1 Message Date
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
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
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
kiwiidb
301b58b7a8 Merge pull request #280 from getAlby/feature/error-response-improvements
more accurate http status codes for keysend
2023-01-13 14:17:28 +01:00
kiwiidb
6dbbf1b63d atomic failed payment handling 2023-01-13 12:34:08 +01:00
kiwiidb
8eff6c8e05 more accurate http status codes for keysend 2023-01-09 15:15:49 +01:00
kiwiidb
88975eba29 invoice: lookup more performant by hash 2023-01-06 11:17:58 +01:00
René Aaron
f451434545 fix: added config variables 2022-12-27 13:19:57 +01:00
René Aaron
052aeacade fix: upgrade sentry, add config variable 2022-12-27 13:11:06 +01:00
kiwiidb
ffd3b5c625 reasoning for deduplication logic 2022-12-20 10:48:10 +01:00
kiwiidb
d02bdf276a 1 channel per client 2022-12-19 15:56:39 +01:00
kiwiidb
e8adc9572f refactor: rm grpc pkg 2022-12-15 15:07:04 +01:00
kiwiidb
1ea35a93f2 add configuration for grpc server 2022-12-15 14:29:39 +01:00
kiwiidb
652567df00 update 0 amount invoices with actual amount paid 2022-12-09 10:58:18 +01:00
kiwiidb
0676fd06f2 Merge pull request #231 from getAlby/chore/update-initialized-payments
Look up status of outgoing payments at startup
2022-12-06 11:50:23 +01:00
kiwiidb
47690dba7e avoid unnecessary db calls 2022-12-06 11:40:21 +01:00
kiwiidb
e63917a919 better logging + don't fetch invoices without hash 2022-12-06 11:32:17 +01:00
kiwiidb
ba99c49124 add some sentry captures 2022-12-05 17:16:09 +01:00
kiwiidb
5e0424941b add time filter when fetching invoices 2022-12-05 17:14:15 +01:00
kiwiidb
bccd73312a tests should be working? 2022-12-02 14:52:15 +01:00