An atproto PDS written in Go

tweak plc client

Changed files
+5 -12
plc
+5 -12
plc/client.go
···
"net/http"
"net/url"
"strings"
-
"time"
"github.com/bluesky-social/indigo/atproto/crypto"
"github.com/bluesky-social/indigo/atproto/data"
-
"github.com/bluesky-social/indigo/did"
-
"github.com/bluesky-social/indigo/plc"
"github.com/bluesky-social/indigo/util"
)
type Client struct {
-
plc.CachingDidResolver
-
h *http.Client
service string
···
return nil, err
}
-
resolver := did.NewMultiResolver()
return &Client{
-
CachingDidResolver: *plc.NewCachingDidResolver(resolver, 5*time.Minute, 100_000),
-
h: util.RobustHTTPClient(),
-
service: args.Service,
-
rotationKey: rk,
-
recoveryKey: args.RecoveryKey,
-
pdsHostname: args.PdsHostname,
+
h: util.RobustHTTPClient(),
+
service: args.Service,
+
rotationKey: rk,
+
recoveryKey: args.RecoveryKey,
+
pdsHostname: args.PdsHostname,
}, nil
}