remove redundant pds routing options

This commit is contained in:
Samuel Newman
2026-07-31 16:08:11 +03:00
parent 37822a523a
commit eb620631f7
3 changed files with 14 additions and 29 deletions
+5 -10
View File
@@ -177,16 +177,11 @@ export async function post(
}
try {
await pdsClient.call(
com.atproto.repo.applyWrites,
{
repo: did,
writes: writes,
validate: true,
},
// service: null strips the appview proxy header - this must hit the account host (PDS)
{service: null},
)
await pdsClient.call(com.atproto.repo.applyWrites, {
repo: did,
writes: writes,
validate: true,
})
} catch (err) {
const e = err as Error
logger.error(`Failed to create post`, {
+5 -10
View File
@@ -40,16 +40,11 @@ export async function getServiceAuthToken({
}
resolvedAud = pdsAud
}
const {token} = await client.call(
com.atproto.server.getServiceAuth,
{
aud: resolvedAud,
lxm,
exp,
},
// service: null strips the appview proxy header - this must hit the account host (PDS)
{service: null},
)
const {token} = await client.call(com.atproto.server.getServiceAuth, {
aud: resolvedAud,
lxm,
exp,
})
return token
}
+4 -9
View File
@@ -37,15 +37,10 @@ export async function bulkWriteFollows(
const chunks = chunk(followWrites, 50)
for (const chunk of chunks) {
await pdsClient.call(
com.atproto.repo.applyWrites,
{
repo: did,
writes: chunk,
},
// service: null strips the appview proxy header - this must hit the account host (PDS)
{service: null},
)
await pdsClient.call(com.atproto.repo.applyWrites, {
repo: did,
writes: chunk,
})
}
await whenFollowsIndexed(appviewClient, did, res => !!res.follows.length)