Skip to content

Commit

Permalink
fix: use paramter for dynamic strategy
Browse files Browse the repository at this point in the history
The value was using a hardcoded 5s

Fixes #175
  • Loading branch information
acouvreur committed Sep 11, 2023
1 parent 5ab29c3 commit 8b57b9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/http/routes/strategies.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"os"
"sort"
"strings"
"time"

log "github.com/sirupsen/logrus"

Expand Down Expand Up @@ -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),
}

Expand Down

0 comments on commit 8b57b9c

Please sign in to comment.