Skip to content

Commit 5c84a6b

Browse files
fixed comment
1 parent 721505f commit 5c84a6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/sources/web/web.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func (s *Source) Init(ctx context.Context, name string, jobId sources.JobID, sou
100100
func (s *Source) Chunks(ctx context.Context, chunksChan chan *sources.Chunk, _ ...sources.ChunkingTarget) error {
101101
jobIDStr := fmt.Sprint(s.jobId)
102102

103-
// Create a background context for crawling (independent of incoming ctx).
103+
// Create a new context with timeout.
104104
crawlCtx, cancel := context.WithTimeout(ctx, time.Duration(s.conn.GetTimeout())*time.Second)
105105
defer cancel()
106106

0 commit comments

Comments
 (0)