Skip to content

Commit 656fc96

Browse files
committed
perf: cache statistics for one minute
1 parent fd265ef commit 656fc96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎stats/stats.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
_ "github.com/ncruces/go-sqlite3/embed"
1111
)
1212

13-
const statsCacheTTL = 30 * time.Second
13+
const statsCacheTTL = time.Minute
1414

1515
// DB wraps a SQLite database for persisting listener session statistics.
1616
type DB struct {

0 commit comments

Comments
 (0)