Skip to content

Commit

Permalink
fix sendTo
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcos20 committed Mar 7, 2025
1 parent fdee534 commit 67697d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/P2P/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -672,10 +672,10 @@ export class OceanP2P extends EventEmitter {
P2P_LOGGER.error(response.status.error)
return response
}
stream = connection.newStream(this._protocol, options)
stream = await connection.newStream(this._protocol, options)
} catch (e) {
response.status.httpStatus = 404
response.status.error = `Cannot connect to peer: ${peerId}`
response.status.error = `Cannot connect to peer ${peerId}: ${e.message}`
P2P_LOGGER.error(response.status.error)
return response
}
Expand Down

0 comments on commit 67697d5

Please sign in to comment.