Commit graph

18 commits

Author SHA1 Message Date
gohumble
01423827b7
Fix shop v1 (#243)
* using shop.base.id

* using shop.base.id

* using shop.base.id

* remove index from delete status messages

* fix delete status messages
2021-12-26 20:46:56 +01:00
LightningTipBot
776de88041
Cancel faucet better (#213)
* speed up tx lock

* base canceled flag

* oops

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-24 16:54:07 +01:00
LightningTipBot
09d3af411e
Better longging 1337 (#206)
* speed up tx lock

* better logging and lnurl lightning: prefix

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-24 15:34:17 +01:00
gohumble
72381d0071
Bunt cache (#189)
* remove user mutex log message

* add bunt cache
2021-12-23 16:52:24 +01:00
LightningTipBot
a644c465cd
Disable bunt lock (#188)
* speed up tx lock

* transaction to storage

* to base

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-23 16:23:57 +01:00
gohumble
bc0d3df897
Fix log (#187)
* remove user mutex log message

* remove log

* fix bunt locks log messages
2021-12-23 15:57:48 +01:00
gohumble
dd88c93474
add mutex package (#185)
* add mutex package

* fix cancelSendHandler
2021-12-23 15:47:18 +01:00
LightningTipBot
f8fadb1729
Onlysats (#181)
* speed up tx lock

* add shops

* shop

* scrolling

* 🚀 add state stateCallbackMessage 🚀

* no shop

* scroll

* add shop browser

* scroll bug

* add buttons.go

* scrolling

* shop

* lnurl print after serving

* shop deletion

* adding and removing shops

* display photo captions

* refactor

* shops

* shops

* files work

* rename shop

* error handling

* fixes

* payments

* confirm delete all shops

* adding new items fix

* own bunt db for shop

* unlock transaction

* remove double print

* add transaction.Lock(id)

* unlock getShop

* add default interceptors to shop

* more files

* go sleep

* add fileStateResetTicker

* async sleep

* add runtime.ResettableFunctionTicker

* remove default duration

* generalized concurrent mutex

* simplify function ticker

* status message ticker queue

* add start index to shopViewDeleteAllStatusMsgs

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
Co-authored-by: lngohumble <lngohumble@gmail.com>
2021-12-23 10:16:13 +01:00
gohumble
6b5e30dbe4
Fix tx lock (#180)
* unlock tx mutex on GET error

* log tx id on timeout
2021-12-22 19:24:51 +01:00
gohumble
72ef490538
unlock tx mutex on GET error (#179) 2021-12-22 19:13:21 +01:00
gohumble
7e2404eaf5
add transaction mutex lock (#178) 2021-12-22 18:54:06 +01:00
LightningTipBot
91d38b5bb4
Faucet debug logging (#175)
* speed up tx lock

* add logging

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-22 17:33:14 +01:00
LightningTipBot
15d711a6fd
Tipjar fix usercheck (#169)
* check for correct user for tipjar
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-19 18:51:49 +01:00
LightningTipBot
5b93d43bc5
speed up tx lock (#161)
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-14 18:06:37 +01:00
gohumble
f6768b72ea
Mutex lock per Telegram User ID (#156)
* lets go

* dunno

* fix after interceptor

* getTelegramUserFromInterface

* clean up requireUserInterceptor

* clean up bs

* cleanup

* cleanup2

* add comment

* fix before default interceptor

* async sleep

* back to 60

* remove newline

* adding defer interceptor

* handlers tighter

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-07 22:55:21 +01:00
LightningTipBot
38251600f9
tx timeout sleep faster (#153)
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-06 22:37:22 +01:00
gohumble
94eff98f60
bunt transaction generalization (#73)
* add generalized bunt database transaction

* use bunt tx for inline faucet and send

* use bunt tx for inline receive

* use bunt tx for inline send

* use bunt tx for pay

* fix typo

* readd context

* add generalized bunt database transaction

* use bunt tx for inline faucet and send

* use bunt tx for inline receive

* use bunt tx for inline send

* use bunt tx for pay

* fix typo

* readd context

* some fixes

* tigher error checking

* add CreatedAt and UpdatedAt flags

* check error in GetTransaction

* add bunt transaction package and rename stuff

* use transaction.Base as function receiver for transaction functions

* add transaction.Base.Set function

* fix tiptooltip bunt index

* refactor

* auto update updated at

* refactor

* remove balance from error

* fix updated at

* faucet errors

* add generalized bunt database transaction

* use bunt tx for inline faucet and send

* use bunt tx for inline receive

* use bunt tx for inline send

* use bunt tx for pay

* fix typo

* readd context

* some fixes

* tigher error checking

* add generalized bunt database transaction

* use bunt tx for inline faucet and send

* use bunt tx for inline send

* add CreatedAt and UpdatedAt flags

* check error in GetTransaction

* add bunt transaction package and rename stuff

* use transaction.Base as function receiver for transaction functions

* add transaction.Base.Set function

* fix tiptooltip bunt index

* refactor

* auto update updated at

* fix updated at

* faucet errors

* refactor

* remove balance from error

* rebase fixes

* fix imports

* fix de string

* fix receive and send

* faucet language

* remove pay constructor

* release faucet

* remove redundant inTransaction

* remove constructor

* remove constructor

* transaction get pointer receiver

* send race condition

* inactivate in db

Co-authored-by: LightningTipBot <hWOofXvq4m@mail.com>
2021-10-08 00:46:52 +03:00
gohumble
acf0cb5af6 Initial commit 2021-09-10 08:52:44 +02:00