fix: increase action rate limit for drag updates in maplibre example (#17)
All checks were successful
CI / Build and Test (push) Successful in 37s

This commit was merged in pull request #17.
This commit is contained in:
2026-02-21 00:50:26 +00:00
parent 453618f712
commit 63de5f997c

View File

@@ -78,10 +78,11 @@ const shipSVG = `<svg width="48" height="28" viewBox="0 0 80 44" xmlns="http://w
func main() {
v := via.New()
v.Config(via.Options{
DocumentTitle: "MapLibre GL Example",
ServerAddress: ":7331",
DevMode: true,
Plugins: []via.Plugin{maplibre.Plugin},
DocumentTitle: "MapLibre GL Example",
ServerAddress: ":7331",
DevMode: true,
Plugins: []via.Plugin{maplibre.Plugin},
ActionRateLimit: via.RateLimitConfig{Rate: 60, Burst: 120},
})
// Single goroutine moves the vehicle — all clients read the same position.