Michilis and Claude Fable 5.1
b27b0b7bcb
Make the named mutex atomic
...
Lock did a get-then-set on the map without holding mutexMapSync, and
Unlock removed the entry before unlocking it. Two handlers that arrived
for a name not yet in the map each got their own mutex, and a waiter
could end up holding a mutex that later callers could not see. Both let
two button presses run the same faucet or inline object at once.
Entries are now created and looked up under one lock and reference
counted, so they are only removed when the last holder unlocks. Tests
run 200 goroutines through Lock and LockWithContext under -race.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com >
2026-11-13 20:41:39 +00:00
gohumble
7204d85837
kick ticket initial commit
2023-01-19 14:22:45 +01:00
0631fd53eb
WIP: Satdress ( #331 )
...
* satdress rebase
* check config
* satdress rebase
* check config
* check for invoices
* return error
* Update inline photo v5 (#332 )
* update url
* round logo
* resize
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
* new logo (#333 )
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
* help (#334 )
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
* add file (#335 )
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
* markdown (#336 )
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
* satdress rebase
* check config
* satdress rebase
* check for invoices
* return error
* satdress works
* add lnbits
* timeout
* error checking
* small lnd
* errors
* button fix
Co-authored-by: LightningTipBot <88730856+LightningTipBot@users.noreply.github.com >
2022-04-29 14:28:12 +02:00
902928f794
perform graceful shutdown on SIGTERM and SIGSTOP ( #281 )
...
* perform graceful shutdown on SIGTERM and SIGSTOP
* comments
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
2022-01-23 00:48:27 +01:00
545d20d043
Mutex fix 329823hf ( #287 )
...
* big change
* mutex
* global lock
* another lock
* fix log
* trySendMessageEditable added
* defer before return
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
2022-01-14 20:34:20 +01:00
a7b9506a9f
better log ( #282 )
...
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
2022-01-11 00:34:59 +01:00
c1fb07fcda
mutex return ( #280 )
...
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
2022-01-09 23:44:06 +01:00
b6d1ed97f1
failsaves ( #278 )
...
* failsaves
* failsafe2
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
2022-01-09 21:43:02 +01:00
8f60cb82f3
add admin service ( #263 )
...
* add admin server + service
* string fixes
* ban and unban user
* add return
* ban using admin key
* ban reason
* remove redundant func call
* add http status
* add log
* anon_id_sha256 (#262 )
* anon_id_sha256
* refactor sha256 hash to strings package
* oops
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
* add admin server + service
* ban and unban user
* string fixes
* add return
* ban using admin key
* ban reason
* remove redundant func call
* add http status
* add log
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
Co-authored-by: LightningTipBot <88730856+LightningTipBot@users.noreply.github.com >
2022-01-05 01:40:37 +01:00
gohumble and GitHub
f1df1e6377
only remove on unlock ( #246 )
2021-12-26 16:58:05 +01:00
fc7247c72a
Adjust log levels ( #244 )
...
* speed up tx lock
* yolo master
* better log
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
2021-12-26 16:30:27 +01:00
gohumble and GitHub
35d5ed8d8e
fix nLocks ( #241 )
2021-12-26 15:12:18 +01:00
07ccc6cc28
Unlock admin ( #240 )
...
* add mutex http endpoints
* remove mutex by id
* remove mutex by id
Co-authored-by: lngohumble <lngohumble@gmail.com >
2021-12-26 14:51:10 +01:00
gohumble and GitHub
24e4212a93
add mutex http endpoints ( #238 )
2021-12-26 14:20:50 +01:00
373ee844da
Log oncemap ( #233 )
...
* speed up tx lock
* yolo master
* logging
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
2021-12-26 00:33:00 +01:00
151ed39b04
add once + singleton click interceptor ( #229 )
...
* speed up tx lock
* yolo master
* add once + singleton click interceptor
* yoooo;
* stuff
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
2021-12-26 00:23:58 +01:00
5414c82339
Logging mutex fix ( #205 )
...
* speed up tx lock
* better logging
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
2021-12-24 15:00:55 +01:00
gohumble and GitHub
47ef5baee3
fix mutex final last v2 maybe ( #202 )
...
* remove mutex on unlock
* add pprof
* fix mutex lock
* fix logs
2021-12-24 14:25:35 +01:00
8f8644a1d2
Faucet panic ( #199 )
...
* speed up tx lock
* remove panic
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
2021-12-24 01:45:07 +01:00
f9aed70869
Soft lock ( #198 )
...
* add Lock and Unlock soft
* Update mutex.go
* sync mutex
* mutex bracket
* add idInterceptor
* context lock
Co-authored-by: lngohumble <lngohumble@gmail.com >
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
2021-12-24 00:12:57 +01:00
LightningTipBot and GitHub
67cff58c63
Revert "Soft lock ( #195 )" ( #196 )
...
This reverts commit 4730c94c84 .
2021-12-23 19:29:14 +01:00
4730c94c84
Soft lock ( #195 )
...
* add Lock and Unlock soft
* Update mutex.go
Co-authored-by: lngohumble <lngohumble@gmail.com >
2021-12-23 19:25:55 +01:00
LightningTipBot and GitHub
e53ef94306
Revert "add Lock and Unlock soft ( #193 )" ( #194 )
...
This reverts commit a9f2728c93 .
2021-12-23 19:08:06 +01:00
gohumble and GitHub
a9f2728c93
add Lock and Unlock soft ( #193 )
2021-12-23 19:06:15 +01:00
gohumble and GitHub
dd88c93474
add mutex package ( #185 )
...
* add mutex package
* fix cancelSendHandler
2021-12-23 15:47:18 +01:00
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
acf0cb5af6
Initial commit
2021-09-10 08:52:44 +02:00