Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add --next-crawler to forward requestCrawl calls to #829

Merged
merged 4 commits into from
Nov 20, 2024

Conversation

brianolson
Copy link
Contributor

No description provided.

log.Warnw("requestCrawl forward failed", "err", err)
} else if response.StatusCode != http.StatusOK {
log.Warnw("requestCrawl forward failed", "status", response.Status)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could log success case as well, for each outbound? but whatever

go func(bodyBlob []byte) {
for _, rpu := range s.nextCrawlers {
pu := rpu.JoinPath("/xrpc/com.atproto.sync.requestCrawl")
response, err := s.httpClient.Post(pu.String(), "application/json", bytes.NewReader(bodyBlob))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no context or timeout here, that is ok I guess...

@bnewbold bnewbold merged commit 6b6afc0 into main Nov 20, 2024
8 checks passed
@bnewbold bnewbold deleted the bolson/requestCrawl-forwarder branch November 20, 2024 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants