···11+package repo
22+33+import (
44+ "github.com/bluesky-social/indigo/util"
55+ indigoxrpc "github.com/bluesky-social/indigo/xrpc"
66+)
77+88+// newKnotMirrorXRPCClient is created once per Repo service. A nil
99+// indigoxrpc.Client creates a new RobustHTTPClient for each XRPC call, which
1010+// also creates a new transport and defeats connection reuse.
1111+func newKnotMirrorXRPCClient(host string) *indigoxrpc.Client {
1212+ return &indigoxrpc.Client{
1313+ Host: host,
1414+ Client: util.RobustHTTPClient(),
1515+ }
1616+}
1717+1818+func (rp *Repo) knotMirrorXRPCClient() *indigoxrpc.Client {
1919+ return rp.knotMirrorXRPC
2020+}