Shorter timeout

This commit is contained in:
2024-11-05 15:58:44 +01:00
parent fa0f1cb48c
commit 52fdcc64ef

View File

@@ -35,7 +35,7 @@ func init() {
log.Lmicroseconds|log.Lshortfile)
}
const DOWNLOAD_WORKERS = 1
const DOWNLOAD_WORKERS = 2
type DLHandler struct{}
@@ -52,7 +52,7 @@ func (*DLHandler) HandleMessage(message *nsq.Message) error {
defer cancel()
go func() {
ticker := time.NewTicker(5 * time.Second)
ticker := time.NewTicker(1 * time.Second)
defer ticker.Stop()
for {