diff options
Diffstat (limited to 'modules/depth/depth.go')
| -rw-r--r-- | modules/depth/depth.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/modules/depth/depth.go b/modules/depth/depth.go index 5efedc8..0cfbc71 100644 --- a/modules/depth/depth.go +++ b/modules/depth/depth.go @@ -16,15 +16,8 @@ type Module struct { Depth int `json:"depth"` } -func (m *Module) ID() string { - return "depth" -} - func (m *Module) CanRequest(url string, depth int) bool { return depth <= m.Depth } -var ( - _ flyscrape.Module = (*Module)(nil) - _ flyscrape.CanRequest = (*Module)(nil) -) +var _ flyscrape.CanRequest = (*Module)(nil) |