mirror of
https://github.com/ChuckNorrison/LightningTipBot.git
synced 2026-08-13 12:33:14 +02:00
timeout 5m
This commit is contained in:
parent
c6df59e51b
commit
5e3432fe32
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ func (bot *TipBot) generateDalleImages(event Event) {
|
|||
}
|
||||
// poll the task.ID until status is succeeded
|
||||
var t *dalle.Task
|
||||
timeout := time.After(90 * time.Second)
|
||||
timeout := time.After(5 * time.Minute)
|
||||
ticker := time.Tick(5 * time.Second)
|
||||
// Keep trying until we're timed out or get a result/error
|
||||
for {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue