Skip to content

Commit

Permalink
115: increase the default minimum sleep duration for the pacer
Browse files Browse the repository at this point in the history
It is now 1000ms = 1.0tps
  • Loading branch information
wiserain committed Nov 19, 2024
1 parent 8dddbc8 commit d7bf889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/115/115.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const (
rootURL = "https://webapi.115.com"
defaultUserAgent = "Mozilla/5.0 115Browser/27.0.6.3"

defaultMinSleep = fs.Duration(250 * time.Millisecond) // 4 transactions per second
defaultMinSleep = fs.Duration(1000 * time.Millisecond) // 1 transactions per second
maxSleep = 2 * time.Second
decayConstant = 2 // bigger for slower decay, exponential

Expand Down

0 comments on commit d7bf889

Please sign in to comment.