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
"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"
0
15
16
"github.com/bluesky-social/indigo/atproto/crypto"
17
"github.com/bluesky-social/indigo/atproto/data"
0
0
18
"github.com/bluesky-social/indigo/util"
19
)
20
21
type Client struct {
0
0
22
h *http.Client
23
24
service string
···
44
return nil, err
45
}
46
0
47
return &Client{
48
+
h: util.RobustHTTPClient(),
49
+
service: args.Service,
50
+
rotationKey: rk,
51
+
recoveryKey: args.RecoveryKey,
52
+
pdsHostname: args.PdsHostname,
0
53
}, nil
54
}
55