Commit 9c66b3b31a7c7c56252286439a7851d9caf7a06a
remove opts for ssbClient
the consturcted opts is basically just a copy of config. it also copies the shs caps / appKey around, breaking against ssb-client@4.5.4Henry committed on 2/10/2018, 5:45:24 PM
Parent: f379402d0c78ad0469d94960abe197a33f6e54c5
Files changed
sbot.js | changed |
sbot.js | ||
---|---|---|
@@ -61,19 +61,9 @@ | ||
61 | 61 … | function notify (value) { |
62 | 62 … | isConn(value); connectionStatus.set(value) |
63 | 63 … | } |
64 | 64 … | |
65 | - var opts = { | |
66 | - path: config.path, | |
67 | - remote: config.remote, | |
68 | - host: config.host, | |
69 | - port: config.port, | |
70 | - key: config.key, | |
71 | - appKey: config.caps.shs, | |
72 | - timers: config.timers | |
73 | - } | |
74 | - | |
75 | - createClient(keys, opts, function (err, _sbot) { | |
65 … | + createClient(keys, config, function (err, _sbot) { | |
76 | 66 … | if (err) { |
77 | 67 … | return notify(err) |
78 | 68 … | } |
79 | 69 … |
Built with git-ssb-web