fix: use paramter for dynamic strategy

The value was using a hardcoded 5s

Fixes #175
This commit is contained in:
Alexis Couvreur
2023-09-11 16:59:40 +00:00
parent 5ab29c3ccc
commit 8b57b9cd05

View File

@@ -7,7 +7,6 @@ import (
"os"
"sort"
"strings"
"time"
log "github.com/sirupsen/logrus"
@@ -87,7 +86,7 @@ func (s *ServeStrategy) ServeDynamic(c *gin.Context) {
CustomThemes: s.customThemesFS,
AllowedCustomThemes: s.customThemes,
Version: version.Version,
RefreshFrequency: 5 * time.Second,
RefreshFrequency: request.RefreshFrequency,
InstanceStates: sessionStateToRenderOptionsInstanceState(sessionState),
}