this repo has no description

tweak plc client

Hailey 4cb0fad5 9eeb0dcc

Changed files
+5 -12
plc
+5 -12
plc/client.go
··· 12 "net/http" 13 "net/url" 14 "strings" 15 - "time" 16 17 "github.com/bluesky-social/indigo/atproto/crypto" 18 "github.com/bluesky-social/indigo/atproto/data" 19 - "github.com/bluesky-social/indigo/did" 20 - "github.com/bluesky-social/indigo/plc" 21 "github.com/bluesky-social/indigo/util" 22 ) 23 24 type Client struct { 25 - plc.CachingDidResolver 26 - 27 h *http.Client 28 29 service string ··· 49 return nil, err 50 } 51 52 - resolver := did.NewMultiResolver() 53 return &Client{ 54 - CachingDidResolver: *plc.NewCachingDidResolver(resolver, 5*time.Minute, 100_000), 55 - h: util.RobustHTTPClient(), 56 - service: args.Service, 57 - rotationKey: rk, 58 - recoveryKey: args.RecoveryKey, 59 - pdsHostname: args.PdsHostname, 60 }, nil 61 } 62
··· 12 "net/http" 13 "net/url" 14 "strings" 15 16 "github.com/bluesky-social/indigo/atproto/crypto" 17 "github.com/bluesky-social/indigo/atproto/data" 18 "github.com/bluesky-social/indigo/util" 19 ) 20 21 type Client struct { 22 h *http.Client 23 24 service string ··· 44 return nil, err 45 } 46 47 return &Client{ 48 + h: util.RobustHTTPClient(), 49 + service: args.Service, 50 + rotationKey: rk, 51 + recoveryKey: args.RecoveryKey, 52 + pdsHostname: args.PdsHostname, 53 }, nil 54 } 55