working config.toml file

This commit is contained in:
LeonardoTrapani
2025-08-20 14:59:51 +02:00
parent b8a22662f3
commit 99f82fb420
4 changed files with 22 additions and 8 deletions
+1 -2
View File
@@ -5,7 +5,6 @@ import (
"log"
"sync"
"sync/atomic"
"time"
"github.com/leonardotrapani/hyprvoice/internal/config"
"github.com/leonardotrapani/hyprvoice/internal/injection"
@@ -68,7 +67,7 @@ func (p *pipeline) Run(ctx context.Context) {
return
}
runCtx, cancel := context.WithTimeout(ctx, 5*time.Minute)
runCtx, cancel := context.WithTimeout(ctx, p.config.Recording.Timeout)
p.setCancel(cancel)
p.wg.Add(1)