Skip to content

Commit

Permalink
lao
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikidepia committed Feb 1, 2025
1 parent 9954d98 commit 91cbe4b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions handlers/scraper/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func InitRemoteScraper(listenAddr *net.TCPAddr, authCode []byte) error {
conn.Close()
continue
}
conn.Write([]byte("ok"))
conn.SetReadDeadline(time.Time{})

go handleConnection(conn)
Expand Down Expand Up @@ -141,8 +142,6 @@ func ScrapeRemote(i *InstaData) error {
select {
case err := <-remoteRes.outChan:
return err
case <-time.After(5 * time.Second):
return errors.New("failed to get data from remote scraper")
}
}

Expand Down

0 comments on commit 91cbe4b

Please sign in to comment.