Commit 1e6fdad
committed
mcp: use rate.Every for idiomatic rate limiting
Replace rate.Limit(1.0/opts.MinInterval.Seconds()) with
rate.Every(opts.MinInterval) which is the idiomatic way
to express a rate from a duration.
Also fix gofmt alignment in LoggingHandler struct.1 parent 3034c9c commit 1e6fdad
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
0 commit comments