crawlergo
crawlergo copied to clipboard
[Code Review] 函数中的无效参数
Discussed in https://github.com/Qianlitp/crawlergo/discussions/107
Originally posted by PIGfaces June 28, 2022 https://github.com/Qianlitp/crawlergo/blob/dbf70647a44bbfbdaeec98791f90c2497d781708/pkg/engine/tab.go#L264-L270
函数 RunWithTimeOut
中的 ctx
参数并没使用到,可以把它去掉吗,真正用到 ctx
是上层的函数调用,上层的 context
超时时间为 TabRunTimeout
到了这一层变成了 DomContentLoadedTimeout
这是出于什么原因呀