From bd9e7f7acfd855d4685aa4544169c0e29cdbf205 Mon Sep 17 00:00:00 2001 From: Philipp Tanlak Date: Sun, 24 Sep 2023 23:36:00 +0200 Subject: clean up modules --- modules/ratelimit/ratelimit.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'modules/ratelimit/ratelimit.go') diff --git a/modules/ratelimit/ratelimit.go b/modules/ratelimit/ratelimit.go index b02f5d5..be622f6 100644 --- a/modules/ratelimit/ratelimit.go +++ b/modules/ratelimit/ratelimit.go @@ -21,10 +21,6 @@ type Module struct { semaphore chan struct{} } -func (m *Module) ID() string { - return "ratelimit" -} - func (m *Module) OnLoad(v flyscrape.Visitor) { rate := time.Duration(float64(time.Second) / m.Rate) @@ -47,7 +43,6 @@ func (m *Module) OnComplete() { } var ( - _ flyscrape.Module = (*Module)(nil) _ flyscrape.OnRequest = (*Module)(nil) _ flyscrape.OnLoad = (*Module)(nil) _ flyscrape.OnComplete = (*Module)(nil) -- cgit v1.2.3