mirror of
https://github.com/vxcontrol/langchaingo.git
synced 2026-07-21 08:55:25 -04:00
46ed77e9ef
- Replaced traditional map and mutex with sync.Map for scraped links to improve concurrency. - Introduced a dedicated writeToBuffer function to handle concurrent writes to the siteData buffer safely. - Streamlined the logic for checking and storing scraped links, enhancing readability and performance.