this repo has no description

tweak plc client

Hailey 4cb0fad5 9eeb0dcc

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