summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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()