Skip to content

Commit

Permalink
remake: patching/105-atproto-services-for-docker.diff to follow upstr…
Browse files Browse the repository at this point in the history
…eam changes.
  • Loading branch information
itaru2622 committed Feb 9, 2025
1 parent d389805 commit 3465e5f
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions patching/105-atproto-services-for-docker.diff
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
diff --git a/services/bsky/api.js b/services/bsky/api.js
index e14b43f2d..528d588bd 100644
index 56c769b9d..5d14c0057 100644
--- a/services/bsky/api.js
+++ b/services/bsky/api.js
@@ -43,18 +43,61 @@ const path = require('node:path')
const assert = require('node:assert')
const cluster = require('cluster')
const { Secp256k1Keypair } = require('@atproto/crypto')
-const { ServerConfig, BskyAppView } = require('@atproto/bsky')
@@ -44,19 +44,62 @@ const assert = require('node:assert')
const cluster = require('node:cluster')
const path = require('node:path')

-const { BskyAppView, ServerConfig } = require('@atproto/bsky')
+const bsky = require('@atproto/bsky') // import all bsky features
const { Secp256k1Keypair } = require('@atproto/crypto')

const main = async () => {
const env = getEnv()
Expand Down Expand Up @@ -37,7 +38,7 @@ index e14b43f2d..528d588bd 100644
+ poolSize: 10,
+ })
+
+ const dataplane = await bsky.DataPlaneServer.create(
+ const dataplane = await bsky.DataPlaneServer.create(
+ db,
+ env.dataplanePort,
+ config.didPlcUrl
Expand Down Expand Up @@ -69,7 +70,7 @@ index e14b43f2d..528d588bd 100644
}
process.on('SIGTERM', shutdown)
process.on('disconnect', shutdown) // when clustering
@@ -62,6 +105,12 @@ const main = async () => {
@@ -64,6 +107,12 @@ const main = async () => {

const getEnv = () => ({
serviceSigningKey: process.env.BSKY_SERVICE_SIGNING_KEY || undefined,
Expand Down

0 comments on commit 3465e5f

Please sign in to comment.