Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
LiranCohen committed Feb 27, 2024
1 parent 077db21 commit ad90dd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/json-rpc-handlers/dwn/process-message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export const handleDwnProcessMessage: JsonRpcHandler = async (

// if this is a subscription request, we first check if the connection has a subscription with this Id
// we do this ahead of time to prevent opening a subscription on the dwn only to close it after attempting to add it to the subscription manager
// otherwise the subscription manager would throw an error that the Id is already in use and we would close the open subscription on the DWN.
if (subscriptionRequest !== undefined && socketConnection?.hasSubscription(subscriptionRequest.id)) {
const jsonRpcResponse = createJsonRpcErrorResponse(
requestId,
Expand Down

0 comments on commit ad90dd2

Please sign in to comment.