mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-15 03:57:30 +08:00
tools: align parallel execution with runtime limits
This commit is contained in:
@@ -12,7 +12,6 @@ import (
|
||||
"time"
|
||||
|
||||
"clawgo/pkg/logger"
|
||||
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -144,6 +143,10 @@ type WebFetchTool struct {
|
||||
maxChars int
|
||||
}
|
||||
|
||||
func (t *WebFetchTool) ParallelSafe() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func NewWebFetchTool(maxChars int) *WebFetchTool {
|
||||
if maxChars <= 0 {
|
||||
maxChars = 50000
|
||||
|
||||
Reference in New Issue
Block a user