tangled
alpha
login
or
join now
willdot.net
/
cocoon
forked from
hailey.at/cocoon
0
fork
atom
An atproto PDS written in Go
0
fork
atom
overview
issues
pulls
pipelines
tweak plc client
hailey.at
11 months ago
4cb0fad5
9eeb0dcc
+5
-12
1 changed file
expand all
collapse all
unified
split
plc
client.go
+5
-12
plc/client.go
···
12
12
"net/http"
13
13
"net/url"
14
14
"strings"
15
15
-
"time"
16
15
17
16
"github.com/bluesky-social/indigo/atproto/crypto"
18
17
"github.com/bluesky-social/indigo/atproto/data"
19
19
-
"github.com/bluesky-social/indigo/did"
20
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
25
-
plc.CachingDidResolver
26
26
-
27
22
h *http.Client
28
23
29
24
service string
···
49
44
return nil, err
50
45
}
51
46
52
52
-
resolver := did.NewMultiResolver()
53
47
return &Client{
54
54
-
CachingDidResolver: *plc.NewCachingDidResolver(resolver, 5*time.Minute, 100_000),
55
55
-
h: util.RobustHTTPClient(),
56
56
-
service: args.Service,
57
57
-
rotationKey: rk,
58
58
-
recoveryKey: args.RecoveryKey,
59
59
-
pdsHostname: args.PdsHostname,
48
48
+
h: util.RobustHTTPClient(),
49
49
+
service: args.Service,
50
50
+
rotationKey: rk,
51
51
+
recoveryKey: args.RecoveryKey,
52
52
+
pdsHostname: args.PdsHostname,
60
53
}, nil
61
54
}
62
55