This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / appview / repo / knotmirror_client.go
562 B 20 lines
1package repo 2 3import ( 4 "github.com/bluesky-social/indigo/util" 5 indigoxrpc "github.com/bluesky-social/indigo/xrpc" 6) 7 8// newKnotMirrorXRPCClient is created once per Repo service. A nil 9// indigoxrpc.Client creates a new RobustHTTPClient for each XRPC call, which 10// also creates a new transport and defeats connection reuse. 11func newKnotMirrorXRPCClient(host string) *indigoxrpc.Client { 12 return &indigoxrpc.Client{ 13 Host: host, 14 Client: util.RobustHTTPClient(), 15 } 16} 17 18func (rp *Repo) knotMirrorXRPCClient() *indigoxrpc.Client { 19 return rp.knotMirrorXRPC 20}