mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-24 01:31:55 +00:00
Remove unnecessary cache copying in ratelimiting
Signed-off-by: Wendi Yu <wendi.yu@yahoo.ca>
This commit is contained in:
@@ -196,12 +196,12 @@ func newNode(t *testing.T, prefix string, https *httptest.Server, weirdPrefs boo
|
||||
logfe := func(fmt string, args ...interface{}) {
|
||||
t.Logf(prefix+".e: "+fmt, args...)
|
||||
}
|
||||
logfe := logger.RateLimitedFn(logfe, 1, 1)
|
||||
logfe = logger.RateLimitedFn(logfe, 1, 1, 100)
|
||||
|
||||
logf := func(fmt string, args ...interface{}) {
|
||||
t.Logf(prefix+": "+fmt, args...)
|
||||
}
|
||||
logf := logger.RateLimitedFn(logf, 1, 1, 100)
|
||||
logf = logger.RateLimitedFn(logf, 1, 1, 100)
|
||||
|
||||
var err error
|
||||
httpc := https.Client()
|
||||
|
||||
Reference in New Issue
Block a user