Commit Graph

848 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
fecba487f9 improve integration tests 2023-02-20 15:47:42 +01:00
kiwiidb
dc922e6382 add description to invoice 2023-02-20 15:02:38 +01:00
kiwiidb
85c5b593bc add outgoing invoice rabbit test 2023-02-20 14:57:03 +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
kiwiidb
61b35bdb6f go mod tidy/rm unneeded change 2023-02-20 13:56:54 +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
9691ae2cfc Typo 2023-02-18 15:35:33 +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
0c89bc306b Merge pull request #318 from getAlby/dont-log-already-processed-keysend
don't log already processed keysend error
2023-02-18 11:39:23 +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
4d25e78c69 typo 2023-02-17 16:34:53 +01:00
kiwiidb
03a2014832 add check for invoice absence in tests 2023-02-17 16:28:59 +01:00
kiwiidb
06f3f1750d relax inequality in balance check 2023-02-17 16:28:46 +01:00
kiwiidb
1e95f2677d streamline error handling 2023-02-17 15:28:28 +01:00
kiwiidb
7b29815ef8 refactor invoice amount checks 2023-02-17 15:19:31 +01:00
kiwiidb
c74f39f94d refactor invoice amount checks 2023-02-17 14:59:10 +01:00
kiwiidb
e14c0af5ca Merge pull request #310 from getAlby/feature/db-pool-config
feature: add db pool config
2023-02-16 16:37:59 +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
fb9d8562e7 Be specific in keytopic name 2023-02-04 17:07: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
Lucas Rouckhout
af83da6e95 change to localhost 2023-02-04 16:02:11 +01:00
Lucas Rouckhout
81693f9c80 Health checks for rabbitmq service 2023-02-04 15:58:30 +01:00
Lucas Rouckhout
e2a819c747 Oopsie poopsie forgot my local URI 2023-02-04 15:52:08 +01:00
Lucas Rouckhout
1b6d50a1db Check with github action 2023-02-04 15:49:14 +01:00
Lucas Rouckhout
6f7e7456a2 Actually start the suite 2023-02-04 15:05:57 +01:00
Lucas Rouckhout
fb932f00b8 WIP integration tests for rabbitmq 2023-02-04 15:00:27 +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
7a01bf6d84 Merge pull request #291 from getAlby/feature/graceful-shutdown
Feature/graceful shutdown
2023-02-04 11:31:39 +01:00