ahmetb / sheets-url-shortener

A simple short URL redirect service built on top of Google Sheets, and runs for cheap on Google Cloud Run serverless.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

3 second sleep causes degraded performance

QuinnyPig opened this issue · comments

In the interest of not pulling a Chesterton's Fence here, what's the purpose of this sleep? It's causing a delay on every fresh invocation outside of the TTL, and I can't find a reasonable race condition that it'd be defending against. Help?

time.Sleep(time.Second * 3)

There's a very good chance I left it in there for testing.