···88 "strings"
99 "time"
10101111- comatproto "github.com/bluesky-social/indigo/api/atproto"
1211 "github.com/bluesky-social/indigo/atproto/syntax"
1312 "github.com/bluesky-social/indigo/cmd/relayered/relay/models"
1414- "github.com/bluesky-social/indigo/xrpc"
15131614 "github.com/ipfs/go-cid"
1715 "gorm.io/gorm"
···152150 // TODO: what do we actually want to track about the source we immediately got this message from vs the canonical Host?
153151 r.Logger.Warn("pds discovered in new user flow", "pds", durl.String(), "did", did)
154152155155- // Do a trivial API request against the Host to verify that it exists
156156- pclient := &xrpc.Client{Host: durl.String()}
157157- if r.Config.ApplyHostClientSettings != nil {
158158- r.Config.ApplyHostClientSettings(pclient)
159159- }
160160- cfg, err := comatproto.ServerDescribeServer(ctx, pclient)
153153+ err = r.HostChecker.CheckHost(ctx, durl.String())
161154 if err != nil {
162155 // TODO: failing this shouldn't halt our indexing
163156 return nil, fmt.Errorf("failed to check unrecognized pds: %w", err)
164157 }
165165-166166- // since handles can be anything, checking against this list doesn't matter...
167167- _ = cfg
168158169159 // could check other things, a valid response is good enough for now
170160 canonicalHost.Hostname = durl.Host