Skip to content

Commit

Permalink
Merge pull request #221 from matrix-org/kegan/spam-time
Browse files Browse the repository at this point in the history
Adjust spam intervals
  • Loading branch information
kegsay committed Jul 24, 2023
2 parents 1f9c98e + 6c83b3a commit 595e1b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sync3/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
// The amount of time to artificially wait if the server detects spamming clients. This time will
// be added to responses when the server detects the same request being sent over and over e.g
// /sync?pos=5 then /sync?pos=5 over and over. Likewise /sync without a ?pos=.
var SpamProtectionInterval = time.Second
var SpamProtectionInterval = 10 * time.Millisecond

type ConnID struct {
UserID string
Expand Down

0 comments on commit 595e1b3

Please sign in to comment.