Skip to content

Commit ff893f1

Browse files
committed
fix: connect to provider double multiaddress parse
1 parent e2c23f3 commit ff893f1

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bitxenia/astradb",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Database for astrawiki & astrachat ipfs using orbitdb & libp2p",
55
"author": "Bitxenia",
66
"license": "MIT",

src/connectionManager.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,7 @@ export class ConnectionManager {
179179
}
180180

181181
console.log(`Connecting to provider: ${provider.id}`);
182-
183-
const multiaddrs = provider.multiaddrs.map((ma) => multiaddr(ma));
184-
this.ipfs.libp2p.dial(multiaddrs).then(
182+
this.ipfs.libp2p.dial(provider.multiaddrs).then(
185183
(conn) => {
186184
console.log(`Connected to provider ${provider.id}`);
187185
},

0 commit comments

Comments
 (0)