summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-07-14 20:23:47 -0500
committerChristian Cleberg <[email protected]>2026-07-14 20:23:47 -0500
commit5756a37bc14bab81cef2e305c504a396995dcf18 (patch)
treee8d99d6cc87a17e83f90be8c30ee3a73003f04be /main.go
parentf4afe364c1885b55d3bd92d1aa2f00c4bb7c8ee2 (diff)
parent369fd17e696699b9b1aa1ac8293e0122c7e3a41e (diff)
downloadskunky-art-5756a37bc14bab81cef2e305c504a396995dcf18.tar.gz
skunky-art-5756a37bc14bab81cef2e305c504a396995dcf18.tar.bz2
skunky-art-5756a37bc14bab81cef2e305c504a396995dcf18.zip
Merge dev: devianter v0.3.1 migration, DA throttle, fixes
Migrate to github.com/zerolabsco/devianter v0.3.1 and adapt to its reordered return values, throttle outbound DeviantArt requests, harden the random-art retry loop, and fix the darwin build.
Diffstat (limited to 'main.go')
-rwxr-xr-xmain.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.go b/main.go
index d7009ae..c57ad7a 100755
--- a/main.go
+++ b/main.go
@@ -5,7 +5,7 @@ import (
"skunkyart/static"
"time"
- "git.macaw.me/skunky/devianter"
+ "github.com/zerolabsco/devianter"
)
func main() {
@@ -17,6 +17,10 @@ func main() {
app.ExecuteConfig()
static.CopyTemplatesToMemory()
+ // Rate/concurrency-limit + time-out outbound DeviantArt requests so bot floods
+ // can't exhaust the process or get our egress IP banned by CloudFront/WAF.
+ app.InstallDAThrottle()
+
go func() {
for {
err := devianter.UpdateCSRF()