Skip to content

Commit

Permalink
fix(review): remove large cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 committed Jan 19, 2025
1 parent 7903959 commit 4ef4acb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yarn-project/p2p/src/services/libp2p/libp2p_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export class LibP2PService<T extends P2PClientType> extends WithTracer implement

const otelMetricsAdapter = new OtelMetricsAdapter(telemetry);

const node = (await createLibp2p({
const node = await createLibp2p({
start: false,
peerId,
addresses: {
Expand Down Expand Up @@ -254,7 +254,7 @@ export class LibP2PService<T extends P2PClientType> extends WithTracer implement
connectionManager: components.connectionManager,
}),
},
})) as PubSubLibp2p;
});

return new LibP2PService(
clientType,
Expand Down

0 comments on commit 4ef4acb

Please sign in to comment.