Skip to content

Commit

Permalink
Fix build on 32bit systems
Browse files Browse the repository at this point in the history
    $ GOARCH=arm GOOS=linux go build ./cmd/goatcounter
    handlers/backend.go:82:15: constant 4294967296 overflows int
  • Loading branch information
arp242 committed May 18, 2020
1 parent b885f7e commit e1694fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (h backend) Mount(r chi.Router, db zdb.DB) {
Store: zhttp.NewRatelimitMemory(),
Limit: func(r *http.Request) (int, int64) {
if !cfg.Prod {
return 1 << 32, 1
return 1 << 30, 1
}
// From httpbuf
// TODO: in some setups this may always be true, e.g. when proxy
Expand Down

0 comments on commit e1694fe

Please sign in to comment.